Updated Sonoff DIY (markdown)

Michael Ingraham 2019-08-20 10:11:42 -04:00
parent 6ffb234a7e
commit 799976eea3
1 changed files with 6 additions and 3 deletions

@ -77,13 +77,16 @@ 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