Max Prokhorov

Results 503 comments of Max Prokhorov

Not to go in a loop, but `= String();` does exactly this without any additional code and / or logic in any of the methods :/ Move is really cheap,...

Does it have different results replacing ```diff - WiFi.setAutoConnect(false); + WiFi.setAutoConnect(true); ``` ? (maybe also reconnect) *edit:* is this related to the https://github.com/esp8266/Arduino/issues/7432?

looking at the event handler, it does not see the invalid psk reason as well ```cpp int reason{0}; // insert this in the connect-check loop void dump_reason() { if (reason...

as I modified it to run - https://gist.github.com/mcspr/c7b40fea7dd1323c11ad45b08103b979 different led and wifi_connect func receives the actual real SSID and invalid PASSWORD ("testtesttest")

from the examples above, imo it's a duplicate of the #7432 - there is no direct 'wrong password' wifi event, only authentication related issues, so idk what it actually means...

this might be a historical feature that was never implemented / broken? one mention of it is here - https://github.com/tzapu/WiFiManager/issues/528#issuecomment-366836252 although, @tablatronix might have a better explanation about the STATION\_WRONG\_PASSWORD...

3.0.0 putting WiFi to sleep on boot may be the reason? https://github.com/esp8266/Arduino/blob/15e7d35d6e7c430915a5a86d854ae855d10a8da5/cores/esp8266/core_esp8266_main.cpp#L390-L394 b/c of Arduino IDE quirks, it is yet another weak-symbol-changing-link-order-magic to disable this behaviour https://github.com/esp8266/Arduino/blob/60fe7b4ca8cdca25366af8a7c0a7b70d32c797f8/libraries/ESP8266WiFi/src/enable_wifi_at_boot_time.cpp https://github.com/esp8266/Arduino/blob/60fe7b4ca8cdca25366af8a7c0a7b70d32c797f8/libraries/ESP8266WiFi/src/enable_wifi_at_boot_time.cpp#L9-L16 Also note...

Does it work after adding `disable_extra4k_at_link_time();` in the `setup();`?

cc @mhightower83 may have a better explanation it is a pretty old api, not something new to the 3.x.x release. *edit:* we allocate 4kib structure for our 'user task' stack,...

Adding it to setup() simply references it for the linker, which is enough to trigger the no-extra4k mode. Your library might as well do that somewhere in it's code, setup()...