[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:
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 159 KiB |
+10
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user