Update 'main.py'

master
nathan 1 month ago
parent d7637aedab
commit 61189985d7

@ -130,7 +130,7 @@ def main_loop ():
print(kwargs) print(kwargs)
if 'attributes' in kwargs: if 'attributes' in kwargs:
attr_bytes=gen.attribute_result(kwargs) attr_bytes=gen.attribute_result(kwargs)
zcl_header = payload_header + bytes([seq]) + _rap zcl_header = payload_header + bytes([seq]) + bytes([_rap])
payload = zcl_header+attr_bytes payload = zcl_header+attr_bytes
print(payload) print(payload)
com.fancy_transmit(payload=payload, source_ep=packet['dest_ep'], dest_ep=packet['source_ep'], cluster=packet['cluster'], profile=packet['profile']) com.fancy_transmit(payload=payload, source_ep=packet['dest_ep'], dest_ep=packet['source_ep'], cluster=packet['cluster'], profile=packet['profile'])

Loading…
Cancel
Save