I just debugged a problem with ESP8266 v0.95(b1) firmware and the latest Espurino build in file network_esp8266.c:
1) Sending the command AT+CWJAP="",""
now longer seems to work, so this code now always fails:
I changed this command to AT+CWQAP for now to test
2) Sending any AT commands with \r\n fails - use \r only when sending to the esp8266
3) Looks like the esp8266_connect() timeout of 500ms is way way to fast especially when connecting to an AP (should be over 5 seconds, ie 10000)
Adding -dESP8266_DEBUG to the defines section of the Makefile helps watch the progress of the failures
Code I used to test: (note I have an STM32F4 (407) Discovery board)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I just debugged a problem with ESP8266 v0.95(b1) firmware and the latest Espurino build in file network_esp8266.c:
1) Sending the command AT+CWJAP="",""
now longer seems to work, so this code now always fails:
I changed this command to AT+CWQAP for now to test
2) Sending any AT commands with \r\n fails - use \r only when sending to the esp8266
3) Looks like the esp8266_connect() timeout of 500ms is way way to fast especially when connecting to an AP (should be over 5 seconds, ie 10000)
Adding -dESP8266_DEBUG to the defines section of the Makefile helps watch the progress of the failures
Code I used to test: (note I have an STM32F4 (407) Discovery board)
Debug Log so far all timeouts updated to 10000 in libs/network/esp8266/network_esp8266.c
You can see the connection works - but the return status is wrong