diff options
| author | lejeune quentin <qle@odoo.com> | 2018-11-07 09:35:26 +0100 |
|---|---|---|
| committer | lejeune quentin <qle@odoo.com> | 2019-04-02 15:53:01 +0200 |
| commit | 1f845e9110529963f360a9dcab07eeb99cda9431 (patch) | |
| tree | 8ad680ef5b46f6bceacb8e6c8839ca02bfa69063 /addons/note/data/note_data.xml | |
| parent | 4da82776ffb2a14c4d291946eadf5bd335595a0a (diff) | |
[IMP] IoT : IoT refactoring - With longpolling
Improve the implementation of IoT.
Allow both-direction communication between iot box and devices.
Now a device can send its value / status as soon as it changes. Not only when he receives a request.
Now the box have only 3 routes:
/hw_drivers/action
parameter: session_id, device_id, data
used to ask at a device to make a action (take picture, make print, ect...)
/hw_drivers/event
parameter: listener
listener is a dict where you have the session_id and a list of device_id to listen
this route wait to answer that we call device_changed for a device_id with data or value
/hw_drivers/box/connect
parameter: token
used to register the box to a Odoo database
token contain the url of Odoo database and a unique number that allow the IoT Box
to connect box in the hour
task : 1906910
Diffstat (limited to 'addons/note/data/note_data.xml')
0 files changed, 0 insertions, 0 deletions
