NodeMCU-ESP8266-Servo-Smart-Blinds icon indicating copy to clipboard operation
NodeMCU-ESP8266-Servo-Smart-Blinds copied to clipboard

EEPROM write doesnt hold

Open bathrug opened this issue 6 years ago • 7 comments

Great bit of code , nice and simple and does the job however I am having troubles with the EEPROM write being over written , i.e I can change the speed and duration with the config command in a browser , it works once but when I press the button in smart things again serial monitor displays "wrote 0" or "wrote 1" and then it will not move the servo any more untill i set the config again ... and then back to square one , works once ... then sets to 0 or 1... am I doing something wrong ?

bathrug avatar Jul 19 '18 13:07 bathrug

im having the same issue any help would be awesome thank you for your code!!

kilosgreen avatar Jul 26 '18 01:07 kilosgreen

I am also facing the same issue. Please provide a fix

Arjun-S05 avatar Aug 20 '18 17:08 Arjun-S05

I'm having the same issue. Can anyone fix this?

smartsoldier avatar Sep 18 '18 00:09 smartsoldier

Same issue here, I didn't have a chance to review the code, but a workaround it to pass the duration at each call. http://esp8266-smart-blinds.local/close?speed=2&duration=5000 or http://esp8266-smart-blinds.local/open?speed=2&duration=5000

therealmysteryman avatar Nov 30 '18 15:11 therealmysteryman

I think, I found the issue, the allocation for the EEPROM is incorrect and may cause the memory to be overwritten.

The DEFAULT_HOSTNAME is 20 characters but the allocation is 19 characters. The next bit was to be used for duration but may get overwritten.

therealmysteryman avatar Nov 30 '18 16:11 therealmysteryman

Same issues , constantly rewrites config files . Passing the duration each call works as a bypass, by how can I get smartthings to do the same . This is a great start , would love to get this working 100 %

94cxhatch avatar Jan 30 '19 04:01 94cxhatch

Same issues , constantly rewrites config files . Passing the duration each call works as a bypass, by how can I get smartthings to do the same . This is a great start , would love to get this working 100 %

I found this thread to create a virtual switch that sends http commands - https://community.smartthings.com/t/released-virtual-http-switch-button-creator/54383 Only tested briefly yesterday but seems to work ok.

reeso3000 avatar May 07 '19 10:05 reeso3000