ДОбавлены команды для работы с режимом привязки на самом модуле MTRF.
authorRoman Bazalevsky <rvb@rvb.name>
Tue, 14 Jan 2020 07:21:02 +0000 (10:21 +0300)
committerRoman Bazalevsky <rvb@rvb.name>
Tue, 14 Jan 2020 07:21:02 +0000 (10:21 +0300)
nmd/nl_mqtt.py

index fc6ddec77d1cbdb910e3b667d03b3a8a02d8e096..f02018c6b867d97c38f2ec23497faa8fe0bda24f 100644 (file)
@@ -144,6 +144,22 @@ class MqttDriver(metaclass=Singleton):
                   elif command == "service":
                     mtrf_command["cmd"] = 131
 
+                  elif command == "start_bind":
+                    mtrf_command["ctr"] = 3
+                    mtrf_command["cmd"] = 0
+                    
+                  elif command == "stop_bind":
+                    mtrf_command["ctr"] = 4
+                    mtrf_command["cmd"] = 0
+
+                  elif command == "clear_bind":
+                    mtrf_command["ctr"] = 5
+                    mtrf_command["cmd"] = 0
+
+                  elif command == "unbind_addr":
+                    mtrf_command["ctr"] = 7
+                    mtrf_command["cmd"] = 0
+
                 except Exception as e:
                   logger.exception(e)
                   continue