projects:sonoff
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
projects:sonoff [2016/09/19 18:49] – [Sharing] adm-jan | projects:sonoff [2016/09/19 20:18] – [Known Hosts / Ports] adm-jan | ||
---|---|---|---|
Line 97: | Line 97: | ||
| Dispatch Host | eu-disp.coolkit.cc | 52.29.61.50 | | Dispatch Host | eu-disp.coolkit.cc | 52.29.61.50 | ||
| deviceDispatHost | | deviceDispatHost | ||
+ | |||
+ | ^ Hostname | ||
+ | | eu-disp.coolkit.cc | ||
+ | | eu-disp.coolkit.cc | ||
+ | | iotgo.iteadstudio.com | ||
+ | | iot.itead.cn | ||
+ | | dl.itead.cn | ||
+ | | eu-ota.coolkit.cc | ||
+ | | eu-ota.coolkit.cc | ||
+ | | eu-api.coolkit.cc | ||
+ | | alog.umeng.com | ||
+ | | eu-long.coolkit.cc | ||
==== libimobiledevice ==== | ==== libimobiledevice ==== | ||
Line 340: | Line 352: | ||
==== Sharing ==== | ==== Sharing ==== | ||
- | Once you have registered a device in your account you have the option to share it to other accounts. | + | Once you have registered a device in your account you have the option to share it to an other account. |
- | To share a device both users need to be online. | + | To share a device both users need to be online |
+ | User-A | ||
+ | The whole process is carried out via WebSocket (secure/ | ||
- | User-A sends a message to the server: | + | User-A sends an invitation |
<file javascript user-a to server> | <file javascript user-a to server> | ||
{ | { | ||
Line 359: | Line 373: | ||
</ | </ | ||
+ | <file javascript server to user-b> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | //Notice:// The server used the provided email address of the recipient to lookup his user api key. | ||
+ | User-b accepts the invitation: | ||
+ | <file javascript user-b to server> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <file javascript server to user-a> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | //Notice:// The sharing process is dealt out between two users and the server. The server is the router here. | ||
+ | If a device is not shared with your account, the server will not route through messages to the device. | ||
+ | On the other hand, the device does //not// know anything about it's owner or who is allowed to control it. | ||
+ | **Nothing holds you back from directly talking to a Sonoff device. It will accept any command from anyone.** | ||
===== ESP8266 ===== | ===== ESP8266 ===== | ||
==== Sonoff firmware ==== | ==== Sonoff firmware ==== |
projects/sonoff.txt · Last modified: 2016/09/19 20:19 by adm-jan