From f78b28dff4ab1baa5a51b15e62b4f0390f6ea955 Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Tue, 14 Jan 2020 10:21:02 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=9E=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?utf8?q?=D1=8B=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=8B=20=D0=B4?= =?utf8?q?=D0=BB=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20=D1=81=20?= =?utf8?q?=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=BE=D0=BC=20=D0=BF=D1=80=D0=B8?= =?utf8?q?=D0=B2=D1=8F=D0=B7=D0=BA=D0=B8=20=D0=BD=D0=B0=20=D1=81=D0=B0?= =?utf8?q?=D0=BC=D0=BE=D0=BC=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D0=B5=20MTRF?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- nmd/nl_mqtt.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nmd/nl_mqtt.py b/nmd/nl_mqtt.py index fc6ddec..f02018c 100644 --- a/nmd/nl_mqtt.py +++ b/nmd/nl_mqtt.py @@ -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 -- 2.34.1