Suddently, my Esp stoppet connecting to my wifi network. I can see this log:
[15:28:53][I][wifi:248]: WiFi Connecting to 'wifi'...
[15:28:53][W][wifi_esp8266:212]: wifi_apply_hostname_(espco): lwIP error -16 on interface st (index 0)
Can anyone help me? I already tried to connect with another ESP and didn’t work. I already have 7 more Esp’s connected. I tried to connect new devices to my network and all of them worked. This is my xaml file:
[I][wifi:257]: WiFi Connecting to 'myWifi'...
[W][wifi_esp8266:212]: wifi_apply_hostname_(ventilation-controller): lwIP error -16 on interface st (index 0)
[W][wifi:549]: Error while connecting to network.
Interesting enough this only happens if I use the mqtt client component.
If i remove those two lines at the end of the yaml, everything works as expected.
Also interesting @amcjoao: We’re both on a 1 MiB ESP8266.
After updating a few esp8266, I now have the same issue: they keep looping on a lwIP error -16 on interface st (index 0) error. I have 5 of them with the same problem. The only one that still works hasn’t been updated.
Too many people asking similar questions. I will only address the OP.
lwIP uses memory pools for network packet and buffer management. Error -16 could potentially be related to memory allocation issues.
You don’t need captive_portal:. Delete this line- it will save memory.
You don’t say which ESP development board you are using, but I have several ESP8266-01, 1MB boards all over my house and I’ve never seen this error. However, I have seen one instance where two ESP devices had the same MAC address. One was a Sonoff Basic and the other was an ESP8266-01. Needless to say the ESP-01 is trash now.