devicehive / esp8266-firmware

DeviceHive esp8266 firmware. Control hardware via clouds with DeviceHive!
MIT License
165 stars 48 forks source link

configure --clear writes random char into the config fields #21

Closed GSaw closed 7 years ago

GSaw commented 7 years ago

See the log below.

DeviceHive ESP8266 firmware v0.5 [Built: 19:19:59 Nov  2 2016]
Created by Nikolay Khabarov.
ChipID: 0xDC7BB8, SDK version: 2.0.0(5a875ba)
Port open. Press Ctrl+Q for exit.
$ config
Wi-Fi SSID: mama
DeviceHive Server: 
DeviceHive DeviceId: catdetector
$ configure --clear
Settings was cleared, rebooting...
$ 
 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 32288, room 16 
tail 0
chksum 0xc7
load 0x3ffe8000, len 2140, room 8 
tail 4
chksum 0x3a
load 0x3ffe8860, len 9216, room 4 
tail 12
chksum 0x8f
csum 0x8f
����g��s��'|�d�l`��r�l�l�d`��r�l�l�d`��;�l
                                                         ��b��o��oo�
                                                                       l��d�
                                                                                l��ll�������l�o�
**********************************
Uart terminal ready.
$ config
Wi-Fi SSID: �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
DeviceHive Server: �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
DeviceHive DeviceId: �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
$ 
Nikolay-Kha commented 7 years ago

Hello. Thank you for reporting this issue. Fix was committed. Will be released with new binary. Before that you can use

configure --force-clear

This command isn't documented, but was used while development. It removes everything that was stored by firmware, including settings and stored web page. So, if you need to remove settings only, back up your web page first.