itead / Sonoff_Devices_DIY_Tools

BSD 3-Clause "New" or "Revised" License
548 stars 168 forks source link

"otaUnlock": false and trying to unlock it doesn't work #77

Closed ASL07 closed 4 years ago

ASL07 commented 4 years ago

Hi,

I am having problems to flash Sonoff Mini

I set up the AP sonoffDiy and the device connects properly

This is the response to curl http://<deviceIP>:8081/zeroconf/info -XPOST --data '{"deviceid":"<deviceID>","data":{} }'

{"seq":2,"error":0,"data":" {\"switch\":\"off\",\"startup\":\"off\",\"pulse\":\"off\",\"pulseWidth\":500,\"ssid\":\"sonoffDiy\",\"otaUnlock\":false}"}

When I run curl http://<deviceIP>:8081/zeroconf/ota_unlock -XPOST --data '{"deviceid":"<deviceID>","data":{} }'

I get no response, it just hangs or fails or returns failed to connect or network unreacheable

ASL07 commented 4 years ago

Sorry, it was an issue with my network setup. It is working fine now