mirror of https://github.com/arendst/Tasmota.git
Updated Sonoff DIY (markdown)
parent
acac9b8b04
commit
b4ab34588a
|
@ -77,12 +77,15 @@ This procedure is recommended for MacOS.
|
||||||
### Flash the firmware and confirm
|
### Flash the firmware and confirm
|
||||||
- Test with /zeroconf/info POST:
|
- Test with /zeroconf/info POST:
|
||||||
>$ curl http://_\<deviceIP>_:8081/zeroconf/info -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
>$ curl http://_\<deviceIP>_:8081/zeroconf/info -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
||||||
|
|
||||||
{"seq":2,"error":0,"data":"{\"switch\":\"off\",\"startup\":\"off\",\"pulse\":\"off\",\"pulseWidth\":500,\"ssid\":\"sonoffDiy\",\"otaUnlock\":false}"}
|
{"seq":2,"error":0,"data":"{\"switch\":\"off\",\"startup\":\"off\",\"pulse\":\"off\",\"pulseWidth\":500,\"ssid\":\"sonoffDiy\",\"otaUnlock\":false}"}
|
||||||
- Unlock OTA updates at /zeroconf/ota_unlock
|
- Unlock OTA updates at /zeroconf/ota_unlock
|
||||||
>$ curl http://_\<deviceIP>_:8081/zeroconf/ota_unlock -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
>$ curl http://_\<deviceIP>_:8081/zeroconf/ota_unlock -XPOST --data '{"deviceid":"1000988699","data":{} }'
|
||||||
|
|
||||||
{"seq":2,"error":0}
|
{"seq":2,"error":0}
|
||||||
- Flash firmware at /zeroconf/ota_flash
|
- Flash firmware at /zeroconf/ota_flash
|
||||||
>$ curl http://_\<deviceIP>_:8081/zeroconf/ota_flash -XPOST --data '{"deviceid":"1000988699","data":{"downloadUrl": "http://_\<webServer>_/sonoff-basic.bin", "sha256sum": "1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9"} }'
|
>$ curl http://_\<deviceIP>_:8081/zeroconf/ota_flash -XPOST --data '{"deviceid":"1000988699","data":{"downloadUrl": "http://_\<webServer>_/sonoff-basic.bin", "sha256sum": "1da0e89be4c01df033fa6da9d0c1db58c3deea354d7ad194f607d1f518db48f9"} }'
|
||||||
|
|
||||||
{"seq":2,"error":0}
|
{"seq":2,"error":0}
|
||||||
- Ping the device for about 30 seconds until it has rebooted
|
- Ping the device for about 30 seconds until it has rebooted
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue