projects
/
mqtt-noolite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7f30da8
)
ДОбавлены команды для работы с режимом привязки на самом модуле MTRF.
author
Roman Bazalevsky
<rvb@rvb.name>
Tue, 14 Jan 2020 07:21:02 +0000
(10:21 +0300)
committer
Roman Bazalevsky
<rvb@rvb.name>
Tue, 14 Jan 2020 07:21:02 +0000
(10:21 +0300)
nmd/nl_mqtt.py
patch
|
blob
|
history
diff --git
a/nmd/nl_mqtt.py
b/nmd/nl_mqtt.py
index fc6ddec77d1cbdb910e3b667d03b3a8a02d8e096..f02018c6b867d97c38f2ec23497faa8fe0bda24f 100644
(file)
--- 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 == "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
except Exception as e:
logger.exception(e)
continue