opendata-stuttgart / sensors-software

sourcecode for reading sensor data
574 stars 312 forks source link

Space in WIFI SSID won't work #224

Closed OtherCroissant closed 5 years ago

OtherCroissant commented 6 years ago

I have a space character in my WIFI SSID and it seems that the sensor will not connect. When creating a guest network without the space, the sensor connects. I found that there is a update for the ESP8266 to support spaces in the WIFI SSID, could you port this fix to the sensor firmware? See https://www.reddit.com/r/esp8266/comments/5pxivk/esp8266_ssid_with_spaces/

YaguraStation commented 6 years ago

@CUnknown , have you by any chance tested unicode as well?

OtherCroissant commented 6 years ago

@YaguraStation Thank you for your fast reply, do you mean replacing the space in the SSID by '\u0020' ?

YaguraStation commented 6 years ago

Basically I'm talking about emojis - very commonplace in SSIDs these days. :dog:

OtherCroissant commented 6 years ago

I know about unicode, but I am not sure how I could enter it in the interface without it being escaped. I now used \\0020 and then it connects one time and then restarts (the same behaviour as with the normal space entered in de SSID). Any thoughts?

OtherCroissant commented 6 years ago

@YaguraStation This is the console output:

---- Result from Webconfig ----
WLANSSID: TEST\\u0020TEST
----
Reading ...
PPD: 0
SDS: 1
PMS24: 0
PMS32: 0
HPM: 0
DHT: 1
DS18B20: 0
HTU21D: 0
BMP: 0
----
Send to ...
Dusti: 1
Madavi: 1
CSV: 0
----
Autoupdate: 1
Display: 0
LCD 1602: 0
Debug: 3
----
Restart needed ...

WiFi connected
IP address: 0.0.0.0
saving config...
<NOT INCLUDED>
Config written: <NOT INCLUDED>
H⸮⸮ԅ⸮⸮D⸮
?mounting FS...
mounted file system...
reading config file...
opened config file...
parsed json...
Starting Webserver... 0.0.0.0
6
Connecting to TEST\u0020TEST
........................................
Starting WiFiManager
AP ID: Feinstaubsensor-8552623
Password: 

Notice the IP adress being 0.0.0.0

I also saw once that it got a valid ip adres for my subnet, but it still restarted.

OtherCroissant commented 6 years ago

Maybe building the sketch myself with the newer version of the ESP8266 wifi stack would do the trick, I will try that in a bit...

YaguraStation commented 6 years ago

Yeah, sorry, didn't want to overflow the thread... but will also attempt to at least reproduce the issue and test emojis sometime this week.

YaguraStation commented 6 years ago

I could reproduce problems with space in SSID.

Funnily emoji in SSID works fine, though. 2018-06-11-213736_330x206_scrot 2018-06-11-214226_692x55_scrot

ricki-z commented 6 years ago

@CUnknown Space should work now (since version NRZ-2018-103). Please close issue if it's okay.

OtherCroissant commented 6 years ago

@ricki-z Unfortunately, still no luck. After configuring the WIFI network, the console output displays that it acquired a IP address on the network, but after storing the config, it needs to restart. After the restart, the device is not able to connect tot the WIFI network with a space in the name again.

ricki-z commented 6 years ago

@CUnknown Should work with new actual release NRZ-2018-105.

ricki-z commented 6 years ago

@CUnknown can we close this issue?

RoTahnWaurie commented 6 years ago

@ricki-z With NRZ-2018-111 this issue occurred for my sensor, too. I installed the sensor last month with NRZ-2018-107 without any wlan problems. After the automatic update from september 20th it won't connect to my wlan with an whitespace in the SSID.

Any idea how to fix this - without changing the SSID?

ropeters68 commented 6 years ago

I don't have the issue, last Saturday (22th) I installed version 111 on two new ESP boards. No problem with the connection to my network (with space in SSID). I do have an issue with access to Madavi.de, looks like the website is unavailable?

----Origineel Bericht---- Van : notifications@github.com Datum : 24/09/2018 20:59 Aan : sensors-software@noreply.github.com Cc : subscribed@noreply.github.com Onderwerp : Re: [opendata-stuttgart/sensors-software] Space in WIFI SSID won't work (#224) @ricki-z With NRZ-2018-111 this issue occurred for my sensor, too. I installed the sensor last month with NRZ-2018-107 without any wlan problems. After the automatic update from september 20th it won't connect to my wlan with an whitespace in the SSID. Any idea how to fix this - without changing the SSID? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

RoTahnWaurie commented 6 years ago

Sorry, my issue seems to be a problem with 802.11n only configuration of the wlan NOT with spaces in the SSID. With 802.11b/g/n mixed wlan configured the sensor connects.

ricki-z commented 6 years ago

The NodeMCU is working in 2.4 GHz wifi networks only.

RoTahnWaurie commented 6 years ago

Thanks for the info, but my AP is 2,4Ghz only and was configured to use 802.11n only. The NodeMCU Lolin V3 worked fine for about a month with this setup until update NRZ-2018-111.

ricki-z commented 5 years ago

@CUnknown can we close this issue?