ESP8266 Arduino sketch + hardware documentation

More
1 year 8 months ago #6386 by nu3e
Hi Lars,

Verify that your Wi-Fi credential strings (ssid and pswd) are correct for your home 2.4 GHz network.

As you probably know, address block 169.254.0.0/16 is reserved for IPv4 link-local addresses, which are automatically assigned to interfaces when other means of address assignment fail or are not available.

To determine the cause of your connection failure, I suggest  https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/readme.html#diagnostics
  • Without changing the code, try "Enable Debugging in IDE" and see what appears on the Arduino serial monitor.
  • You can enable debugging programmatically by calling Serial.setDebugOutput(true) after Serial.begin(9600).
  • Printing the return value of WiFi.status() or calling WiFi.printDiag(Serial) should be helpful.
When I next update the code, I'll output connection diagnostics.

John

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #6388 by Alterna
Above issue solved :-)
ESP8266 is not able to use Wifi channel 13 and 14!
My wifi modem was using channel 13

Best regrads from Lars, Denmark

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #6389 by nu3e
Thanks for sharing your solution. I found this article which states channels 12, 13, and 14 don't work properly on the ESP8266:

https://olimex.wordpress.com/2021/12/10/avoid-wifi-channel-12-13-14-when-working-with-esp-devices/

I would never have discovered that, because here in the USA only channels 1-11 are allowed.

John

Please Log in or Create an account to join the conversation.

Moderators: Gamma-Man
Time to create page: 0.149 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 36% Memory 14% Swap 42% CPU temp=60.8'C Uptime 50 Days