MQTT hello is saved in database
This commit is contained in:
+3
-1
@@ -1,4 +1,5 @@
|
||||
from time import time
|
||||
from shared.deviceTypes import DEVICE_TYPES
|
||||
|
||||
|
||||
try:
|
||||
@@ -16,7 +17,8 @@ def as_json(data):
|
||||
|
||||
def mqtt_hello(id_microwave):
|
||||
return as_json({
|
||||
"id_microwave": id_microwave
|
||||
"id_microwave": id_microwave,
|
||||
"type": DEVICE_TYPES["MICROWAVE"]
|
||||
})
|
||||
|
||||
def mqtt_hello_ack(id_orchestrator, id_microwave):
|
||||
|
||||
Reference in New Issue
Block a user