arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.01k stars 4.77k forks source link

Change from no web + mqtts back to web server and mqtt #1751

Closed swampdogmash closed 6 years ago

swampdogmash commented 6 years ago

I originally thought i'd increase security by using no web server and implementing MQTTS instead. I'd like to swap back now to use the web server but some of the devices are difficult to access for serial flashing.

I been sending MQTT messages to them to update the OTA URL and can confirm with a "/otaurl ?" command that it has updated the URL and I can then send an "/update 1" to start he upgrade - I thought uploading a new bin file would overwrite my options but no success so is it possible?

I have been trying to do this using OTA, is it even possible or will i have to serial flash the devices?

mscreations commented 6 years ago

You may want to issue the "reset 2" command to erase the flash, reset to user_config.h settings and then restart.

reloxx13 commented 6 years ago

yup, if u use the same CFG_HOLDER in teh user_config.h, the new config does not get loaded.

reset 2 might help, but this resets everything.

seems no way around.

swampdogmash commented 6 years ago

Interestingly the existing code was supplied my myself directly from serial... the code I Then loaded was it's from sonoff.maddox.co.uk so I can't expect the cfg_holder was the same... it's statistically quite improbable. Curious one. Any other suggestions as I've tried these tna

swampdogmash commented 6 years ago

Not sure it is config issue.. having the web server OR the MQTTS is presumably a compiled in thing in the binary... I am quite new to this so not really sure why a completely different binary from a different source would not change the setup... Unless it didn't apply the new firmware of course....

swampdogmash commented 6 years ago

Closing as have raised a separate issue with more detail and broader scope.