-
Notifications
You must be signed in to change notification settings - Fork 224
WiFi will not connect for the Color model #170
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
I have tested this fix with both the Color model, and a simple Client Sketch. It always fails when HOSTNAME is 32 chars, and works when less. |
Thanks. Here they state that the max be 32 chars: https://arduino-esp8266.readthedocs.io/en/3.1.2/esp8266wifi/station-class.html#hostname |
Yes, 32 as in char[32] if it is a String 32 then you need 33 bytes. Some code somewhere is converting the variable to a string by adding a /00 to the end thus overwriting some random memory location. I have 2 different sketches, one simple one more complex and they both fail consistently with a 32 byte HOSTNAME and never fail to connect with a HOSTNAME less than 32. The bug may in fact be in library code, but the avoidance is to limit the HostName to 31 or less.
… On Apr 24, 2024, at 02:01, Marcel Stör ***@***.***> wrote:
Thanks. Here they state the max be 32 chars: https://arduino-esp8266.readthedocs.io/en/3.1.2/esp8266wifi/station-class.html#hostname
—
Reply to this email directly, view it on GitHub <#170 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AK3P74HY7BJYBZ23UAUIVODY65DEHAVCNFSM6AAAAABGVYRTMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZUGEYDMNRZG4>.
You are receiving this because you modified the open/close state.
|
Yes, 32 CHARS, NOT a String of 32 (33rd will be /00)
… On Apr 24, 2024, at 02:01, Marcel Stör ***@***.***> wrote:
Thanks. Here they state the max be 32 chars: https://arduino-esp8266.readthedocs.io/en/3.1.2/esp8266wifi/station-class.html#hostname
—
Reply to this email directly, view it on GitHub <#170 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AK3P74HY7BJYBZ23UAUIVODY65DEHAVCNFSM6AAAAABGVYRTMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZUGEYDMNRZG4>.
You are receiving this because you modified the open/close state.
|
Use one of the two templates below and delete the rest.
8<------------------------ BUG REPORT -----------------------------------------
Expected behavior
WiFi should connect
Actual behavior
Wifi Status is WL_STATUS 7 forever
Test code
Reduce the HOSTNAME from 32 chars to at least 1 less.
Weather Station Color version
Which branch are you on? If you know the Git revision then add it here as well.
I don't know
Hardware
Describe whether you run the code on the ThingPulse Weather Station Color kit or on some custom hardware.
I am using the ThingPulse Weather Station Color kit
8<------------------------ END BUG REPORT -------------------------------------
8<------------------------ FEATURE REQUEST ------------------------------------
Missing feature
Justification
Tell us why you would like to see this feature added.
Workarounds
Are there any workarounds you currently have in place because the feature is missing?
8<------------------------ END FEATURE REQUEST --------------------------------
The text was updated successfully, but these errors were encountered: