-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Crash by click on "Configure Wifi" #36
Comments
I just took out the last 4 digit from the hostname in the config.h and with the same firmware I cannot change the Wifi config anymore! I could not configure through the webserver too and then I thought I change that in the user_confi.h and recompile and upgrade. The upgrade went well, but now I am unable to go into the webserver's config Wifi anymore! I did not change to the latest version on Github in the mean time! |
I can reproduce exception (28) when opening the Wifi Config page and having changed the default WIFI_HOSTNAME to "%s%04d" (without the dash) . Will investigate... In the meantime keep the user_config.h hostname as defined (WIFI_HOSTNAME "%s-%04d") and just change it to your likings in the Wifi config page or use the command |
I'll remove the WIFI_HOSTNAME setting from user_config.h as the goal of this version is to make changes online if possible anyway. The user can still change the hostname using the Wifi Config page and/or the Background: I need to write a lot of code to handle (bad) user input regarding % signs in names. As you noticed removing the dash is disastrous as the standard procedure for replacing the %s%04d by the Topic name filled with four characters from the unique MAC address fails. |
I could not get into the wifi configuration menu on the webserver(used the hostname cmnd on all my sonoff units without special characters). This was solved by doing a firmware upgrade with just the same firmware as was already loaded. Something that might help finding out when investigating the cause of this problem. Btw the menu still shows the numbers in the label for changing hostname. |
By removing WIFI_HOSTNAME from the user_config.h and not allowing any string formatting by users the problem should have been solved. You're still able to configure your hostname by command and webpage. |
I am customizing my config using user_config_override.h - I think this is the idea behind isn´t it? will you remove hostname config possitility from this file too? |
Yes. The ability to configure hostname via user_config or user_config_override is removed. The default hostname will be unique and derived from MQTT topic and the last four decimal digits of the MAC address like The user can then change this hostname via the hostname command or the webpage. |
There is still a #define WIFI_HOSTNAME "%s-%04d" in sonoff.ino on line 61. This still gives the opportunity to misconfigure the name! Shouldn"t you hardcode this as a default? |
I know. But if someone wants to change it outside user_config.h I won't fix any problem that results from a change. |
arendst#36 fixed ba adding additional calculation as requested. Tested OK
3.9.12 20170208 * Fix compile error when webserver is disabled (arendst#30) * Fix possible ESP8285 flash problem by updating Flash Chip Mode to DOUT during OTA upload * Fix hostname issues by not allowing user entry of string formatting and removing from user_config.h (arendst#36)
* Prep for core 2.7 * Test release core 2.6.3... if it appears in build * Release zip as source for core? * Release Core 2.7.0 removed comment behind definition since it generates on some platforms errors * Update platformio_override_sample.ini * Update (#34) * Fix pin handling part 1 * Change pin handling part 2 * Change pin handling part 3 * Change pin handling part 4/4 * Fix pin handling part 4/4 * Change pin handling part 5 * Change pin handling part 6 * Update xsns_02_analog.ino * Only advance to next palette color when fade is down * Rework DGR channel update * Update Changelog and Release notes * Switch from GPIO array to Pin array * Change ESP32 pin allocation part 1 * Change pin array names Change pin array names to block unwanted use of direct access * Fix ESP32 settings size Fix ESP32 settings size as regression from yesterday * Change ESP32 pin allocation part 2 * Fix http message time * Create CI_github.yml * CI on Push and Pull * Change ESP32 pin allocation part 3 * Fix ESP32 pin allocation part 3 regression * Rename .travis.yml to .travis.yml.off * Update CI_github.yml * Update README.md * Update PULL_REQUEST_TEMPLATE.md * Fix CI badge Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com> Co-authored-by: kugelkopf123 <45996965+kugelkopf123@users.noreply.github.com> Co-authored-by: Paul C Diem <PCDiem@FoxValley.net> Co-authored-by: device111 <48546979+device111@users.noreply.github.com> Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com> Co-authored-by: kugelkopf123 <45996965+kugelkopf123@users.noreply.github.com> Co-authored-by: Paul C Diem <PCDiem@FoxValley.net> Co-authored-by: device111 <48546979+device111@users.noreply.github.com>
Hi Theo,
I got a crash in a Sonoff Basic.
The Wifi definition in the user_config.h:
If you need the Wifi password, I can send it in PM.
Thanks for your work, you owe more than one beer!
Regards, Jacques-D.
The text was updated successfully, but these errors were encountered: