Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the SONOFF DIY Mode Protcol Doc v1.4 #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions SONOFF DIY MODE Protocol Doc v1.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ e.g.

#### 6. OTA Function Unlocking

Unlocks the device for firmware upgrades and indicates that the device is no longer under manufacturer's warranty.

**URL:** http://[ip]:[port]/zeroconf/ota_unlock

**Return value format:** json
Expand Down Expand Up @@ -451,6 +453,8 @@ The following failure codes are added to the error field of the response body:

#### 7. OTA New Firmware

Updates the firmware on the device from a _local_ HTTP server (i.e. not Internet) that supports Range request header (e.g. Apache).

**URL: **http://[ip]:[port]/zeroconf/ota_flash

**Return value format:** json
Expand All @@ -471,7 +475,7 @@ e.g.

| Attribute | Type | Optional | Description |
| :---------: | :----: | :------: | :----------------------------------------------------------- |
| downloadUrl | String | No | The download address of the new firmware, only supports the HTTP protocol, the HTTP server must support the Range request header. |
| downloadUrl | String | No | The download address of the new firmware, only supports the HTTP protocol, the HTTP server must support the Range request header. The new firmware server must be re-hosted on the same subnet as the device. |
| sha256sum | String | No | SHA256 checksum (hash) of the new firmware, it is used to verify the integrity of the new firmware downloaded |

The following failure codes are added to the error field of the response body:
Expand Down Expand Up @@ -549,4 +553,4 @@ Monitor and parse the device's DNS TXT record to get the device information in r
5. Android Network Service Discovery: [https://developer.android.com/training/connect‑devices‑wirelessly/nsd](https://developer.android.com/training/connect‑devices‑wirelessly/nsd)
6. Sonoff DIY Mode Demo Application on Github: [https://github.com/itead/Sonoff_Devices_DIY_Tools](https://github.com/itead/Sonoff_Devices_DIY_Tools)
7. Wikipedia Zero Configuration Networking: [https://en.wikipedia.org/wiki/Zero-configuration_networking](https://en.wikipedia.org/wiki/Zero-configuration_networking )
8. How does Zeroconf compare with Viiv/DLNA/DHWG/UPnP: [http://www.zeroconf.org/ZeroconfAndUPnP.html](http://www.zeroconf.org/ZeroconfAndUPnP.html )
8. How does Zeroconf compare with Viiv/DLNA/DHWG/UPnP: [http://www.zeroconf.org/ZeroconfAndUPnP.html](http://www.zeroconf.org/ZeroconfAndUPnP.html )