So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By AxelD
#81407 Hi! Configuration for ESP8266-module:

Version info: 1.2.0.0
SDK 1.5.4.1
Ai-Thinker

We're unable to initialize the module through the serial monitor in Arduino IDE. We have configured the module to communicate on 9600 Baud Rate, and we're using this source code:
"""
#include <SoftwareSerial.h>
#include "WiFiEsp.h"

SoftwareSerial Serial1(6,7);

char ssid[] = "XXX"; //Our personal information
char pass[] = "YYY";

int status = WL_IDLE_STATUS;

void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial1.begin(9600);
WiFi.init(&Serial1);
if (WiFi.status() == WL_NO_SHIELD){
Serial.println("WiFi shield not present");
while(true);
}
while(status != WL_CONNECTED ) {
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
status=WiFi.begin(ssid,pass);
}
Serial.println("You're connected to the network");
printWifiStatus();
}

void loop() {
// put your main code here, to run repeatedly:
}
void printWifiStatus(){
Serial.print("SSID: ");
Serial.println(WiFi.SSID());
IPAddress ip = WiFi.localIP();
Serial.print("IP Address: ");
Serial.println(ip);
}
"""

Output is:
"""
>>>TIMEOUT
>>>TIMEOUT
>>>TIMEOUT
>>> WiFi shield not present
"""

Is it possible that our source code is incorrect? We're currently trying to connect to a Mobile Tethering network, perhaps that doesn't work either (seems to work just fine for some ppl on this forum, have tried iPhone and Android). Any suggestions for means of troubleshooting this further??

Best regards, AD