From: Roman Bazalevsky Date: Tue, 14 Jan 2020 07:21:02 +0000 (+0300) Subject: ДОбавлены команды для работы с режимом привязки на самом модуле MTRF. X-Git-Url: https://git.rvb.name/mqtt-noolite.git/commitdiff_plain/f78b28dff4ab1baa5a51b15e62b4f0390f6ea955?ds=inline ДОбавлены команды для работы с режимом привязки на самом модуле MTRF. --- 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