logo elektroda
logo elektroda
X
logo elektroda

ESP8266 with Arduino UNO does not connect to io.adafruit.com - what code?

robo1973 432 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18411233
    robo1973
    Level 15  
    Hello !!!
    I have connected the ESP8266 module on TX and RX to an Arduino UNO and cannot connect to the io.adafruit.com platform.
    Below is the program code. On the ESP8266 NodeMCU WiFi module I connect without any problem, and here when I connect the wifi separately I have the problem.
    ESP8266 + Ardurino connects to wifi, but cannot with io.adafruit.com, so that wifi works.

    Maybe something with the WiFiEspClient client; ?
    On the nodeMCU I use WiFiClien ?
    Code: C / C++
    Log in, to see the code
    .
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 18412004
    khoam
    Level 42  
    Have you checked that the ESP module has AT firmware loaded? What version is it in? The connections should be RX-TX/TX-RX.
    After the command WiFi.init(&Serial1) you can check WiFi.firmwareVersion() - it returns a text string, you can send it via Serial.print(). It will return an empty string as there is no connectivity to the ESP.

    Generally SoftwareSerial at 115200 is unlikely to work properly - the maximum is 38400. You would need to plug in a serial terminal to the ESP and reduce the default baud rate, preferably to 9600 as in the examples for the WiFiEsp library.
  • #3 18413089
    robo1973
    Level 15  
    Thank you kol khoam for your help Actually setting the speed to 9600 helped
    Greetings !!!!
ADVERTISEMENT