[FIX] doc: For IoT add reference for longpolling

Add details in IoT for the release of a event with the longpolling

closes odoo/odoo#46215

X-original-commit: 0ce8ab484d03ea2fdb318a7427fc20c0028bb964
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
This commit is contained in:
lejeune quentin
2020-02-25 11:26:07 +00:00
parent 182604178c
commit 1dfda363a9
2 changed files with 10 additions and 4 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

+10 -4
View File
@@ -1,3 +1,4 @@
:banner: banners/iot.jpg
==================
Internet of Things
@@ -128,7 +129,12 @@ with `self.data` as argument.
from odoo.addons.hw_drivers.controllers.driver import event_manager
self.data = {
'value': 0.5
}
event_manager.device_changed(self)
class DriverName(Driver):
connection_type = 'ConnectionType'
def methodName(self):
self.data = {
'value': 0.5,
...
}
event_manager.device_changed(self)