-
Notifications
You must be signed in to change notification settings - Fork 13.3k
calling ESP8266WiFiMesh::deactivateAP() doesn't fully disable wifi and corrupts SSID #5071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe this is expected behavior? But I didn't expect to need to call |
CC @aerlon |
Interesting. Neither my phone, nor my laptop can detect the WiFi once This problem is caused by the use of @devyte Is it expected behaviour that just having the ESP8266 enter If this is not a bug in the core code, the default WiFi mode of the mesh library will have to change. This should be possible, but I will need to do some testing. @rorosaurus |
My guess is that of you change mode to ap_sta, then an ap will be brought up with whatever parameters possible. I would expect some default if nothing has been set up, but I'm just guessing. (Sorry for lousy pseudo code, I'm travelling with just my phone). |
Yes, after reviewing the core source code it seems as though |
* - Add assert in HelloMesh.ino for invalid transmission status. - Make uint64ToString and stringToUint64 methods into stand-alone type conversion functions. - Add getters and setters for requestHandler and responseHandler. - Polish HelloMesh.ino code by adding networkIndex as networkFilter loop variable and switching networkFilter definition position. - Add initial WiFi.disconnect() in HelloMesh.ino setup() function to ensure smooth WiFi operation. - Add latestTransmissionSuccessful() convenience method. - Change default WiFi mode to WIFI_STA and improve handling of WiFi mode (fixes issue #5071). - Add checks to methods that change AP properties to avoid unnecessary AP restarts. - Add getter for ESP8266WiFiMesh SSID and getters and setters for ESP8266WiFiMesh settings related to hidden SSID usage, max station connections allowed per AP and WiFi timeouts. - Make waitForClientTransmission method use more accurate timekeeping. - Improve type usage. - Improve comments. - Update README.md, keywords.txt and library.properties. * Make getter and setter order consistent throughout code. * - Fix active AP getting turned off when calling begin(). - Fix crash bug due to WiFiServer duplication when using the ESP8266WiFiMesh copy constructor with the AP controller as argument, under certain circumstances. * - Move non performance-sensitive Strings to flash memory to save RAM. - Add comments explaining F(), FPSTR() and PROGMEM. - Fix README.md formatting. * Remove the uint64ToString and stringToUint64 methods from the ESP8266WiFiMesh class since they are now stand-alone functions in the TypeConversionFunctions files. * Change the minimum valid argument value of the setMaxAPStations method to 0, since this value is also supported by the ESP8266. * Fix compiler warning.
@rorosaurus There were a few more complications than expected, but now the intermediate mesh update is done and merged to master. Among other things it should fix all the bugs we have discussed and also allow you to choose the number of stations that can connect to each AP (between 0 and 8). Would it be possible for you to verify that the AP deactivation problem is fixed in the latest master and, if true, close this issue? That would help keep the number of open issues down. |
I should probably add that |
Reference: #6280 |
Still not done with this, pushing back to 3. |
Does merged #6280 address this issue ? |
Mesh version 2.2 should address everything mentioned here. The issue can be closed. |
Basic Infos
Calling
ESP8266WiFiMesh::deactivateAP()
in the example HelloMesh program produces a Wifi network with this result, after refreshing wifi on my phone:I would have expected the wifi network to be shut off completely, not remove password, SSID, etc.
The text was updated successfully, but these errors were encountered: