[GH-ISSUE #351] Problem with WiFi.scanNetworks(); #295

Closed
opened 2026-02-28 01:24:35 +03:00 by kerem · 7 comments
Owner

Originally created by @nhaduy99 on GitHub (Apr 8, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/351

Hi,
I am using this library but sometimes the config AP portal doesn't show off when scanning the local wifi (page 192.168.4.1/?wifi). I check on the Serial Monitor:
*WM: Scan done
*WM: Yamaha
*WM: -60
*WM: My Dung_plus
*WM: -87
*WM: Sent config page

Sometimes the web appears with missing parts and one weird word of: "CTYPE html>" appeared. I searched that this wear word appears when the web is not fully HTML website.

How do I fix this?

Best regards,
Seppy

Originally created by @nhaduy99 on GitHub (Apr 8, 2017). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/351 Hi, I am using this library but sometimes the config AP portal doesn't show off when scanning the local wifi (page 192.168.4.1/?wifi). I check on the Serial Monitor: *WM: Scan done *WM: Yamaha *WM: -60 *WM: My Dung_plus *WM: -87 *WM: Sent config page Sometimes the web appears with missing parts and one weird word of: "CTYPE html>" appeared. I searched that this wear word appears when the web is not fully HTML website. How do I fix this? Best regards, Seppy
kerem 2026-02-28 01:24:35 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@svh1985 commented on GitHub (Apr 29, 2017):

I'm having the same issues; especially when there are a lot of wifi networks around.

<!-- gh-comment-id:298158799 --> @svh1985 commented on GitHub (Apr 29, 2017): I'm having the same issues; especially when there are a lot of wifi networks around.
Author
Owner

@tablatronix commented on GitHub (Aug 27, 2017):

How many aps?
I have 25 and have never encountered this

<!-- gh-comment-id:325169546 --> @tablatronix commented on GitHub (Aug 27, 2017): How many aps? I have 25 and have never encountered this
Author
Owner

@svh1985 commented on GitHub (Aug 27, 2017):

I can test it when I'm back home, we have 40+ WiFi networks from all the neighbours at home.

<!-- gh-comment-id:325185523 --> @svh1985 commented on GitHub (Aug 27, 2017): I can test it when I'm back home, we have 40+ WiFi networks from all the neighbours at home.
Author
Owner

@tablatronix commented on GitHub (Aug 27, 2017):

k
interestingly enough I am having a similar symptom unrelated to this issue

<!-- gh-comment-id:325198576 --> @tablatronix commented on GitHub (Aug 27, 2017): k interestingly enough I am having a similar symptom unrelated to this issue
Author
Owner

@svh1985 commented on GitHub (Aug 27, 2017):

I'm guessing that it has something to do with the ESP running out of memory when it has to do all the "find & replace" actions during the HTML output generation.

<!-- gh-comment-id:325202106 --> @svh1985 commented on GitHub (Aug 27, 2017): I'm guessing that it has something to do with the ESP running out of memory when it has to do all the "find & replace" actions during the HTML output generation.
Author
Owner

@tablatronix commented on GitHub (Aug 27, 2017):

Yeah I am going to check the output and see whats mangled, oddly mine only occurs if i am not calling handleclient fast enough, so there is some asynchronous problems with the server handling.

<!-- gh-comment-id:325204130 --> @tablatronix commented on GitHub (Aug 27, 2017): Yeah I am going to check the output and see whats mangled, oddly mine only occurs if i am not calling handleclient fast enough, so there is some asynchronous problems with the server handling.
Author
Owner

@tablatronix commented on GitHub (Aug 27, 2017):

_apname is const char and getting lost
refactoring in my dev branch required me to change this anyway for non blocking mode, and inadvertently fixes this bug also. Basically change _apname and _appassword to strings, much easier to deal with.

Possible we will have to restructure _customHeadElement as well

<!-- gh-comment-id:325206624 --> @tablatronix commented on GitHub (Aug 27, 2017): `_apname` is const char and getting lost refactoring in my dev branch required me to change this anyway for non blocking mode, and inadvertently fixes this bug also. Basically change _apname and _appassword to strings, much easier to deal with. Possible we will have to restructure `_customHeadElement` as well
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#295
No description provided.