Skip to content
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

"Unconfigured SensESP Device" SSID s/b unique #86

Closed
ba58smith opened this issue Mar 23, 2020 · 5 comments
Closed

"Unconfigured SensESP Device" SSID s/b unique #86

ba58smith opened this issue Mar 23, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request see pull request PR created, awaiting review

Comments

@ba58smith
Copy link
Collaborator

ba58smith commented Mar 23, 2020

If you happen to have two unconfigured SensESP devices, they both get the same the SSID ("Unconfigured SensESP Device"), and the same IP address. It would be better if the name were unique to the device, using some part of the device's Hostname to make it unique. It would be best if each had a unique name AND a unique IP address.

This problem is made worse by the fact that some ESP's will broadcast their SSID (with the name "Unconfigured SensESP Device") even after they have successfully connected to the network. (That's another issue, of course. Issue # 87, in fact. )

@ba58smith ba58smith changed the title "Unconfigured SensESP Device" AP name s/b unique "Unconfigured SensESP Device" SSID name s/b unique Mar 25, 2020
@ba58smith ba58smith changed the title "Unconfigured SensESP Device" SSID name s/b unique "Unconfigured SensESP Device" SSID s/b unique Mar 25, 2020
@ba58smith ba58smith added enhancement New feature or request help wanted Extra attention is needed labels Mar 25, 2020
@ba58smith
Copy link
Collaborator Author

I've spent hours looking at this, and I can't make any progress on it. I can't sort out the confusion between the hostname and the SSID, and also, I think the SSID may be cached on the ESP or on all of my wifi-enabled devices, because even when I change the string "Unconfigured SensESP Device" to something else, it STILL broadcasts "Unconfigured SensESP Device".

@mairas
Copy link
Collaborator

mairas commented Apr 7, 2020

I can have a look soon(ish). Tasmota would be a good reference project for this one - the Tasmota devices advertise with an SSID like Tasmota-1234 (don't remember the exact format), where the number is unique for each sensor, probably taken from the MAC address of the wifi device.

@ba58smith
Copy link
Collaborator Author

One challenge with this is that there seems to be a bug in WiFiManager in which the SSID and PW of the saved network are not erased from the flash memory on the ESP8266 when resetSettings() is called (which just calls disconnect()). This is still an open Issue with WiFiManager: tzapu/WiFiManager#142.

@ba58smith
Copy link
Collaborator Author

See PR #108.

@ba58smith ba58smith added see pull request PR created, awaiting review and removed help wanted Extra attention is needed labels Apr 13, 2020
@ba58smith ba58smith self-assigned this Apr 13, 2020
@ba58smith
Copy link
Collaborator Author

Fixed with PR #108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request see pull request PR created, awaiting review
Projects
None yet
Development

No branches or pull requests

2 participants