Files
garageDoorZigbee/com.py
Nathan 67410efd8b command / attributes files in spec for decode
barrier exists and is doing a watch for status change on pins 0 and 1
main is starting to add in the new cluster at endpoint 8 on interview
com is where fancy_transmit is now
2022-01-02 21:10:52 -05:00

17 lines
522 B
Python

import time
import xbee
def receive():
return xbee.receive()
def fancy_transmit(payload, source_ep, dest_ep, cluster,profile):
send = 0
while send == 0:
try:
if xbee.transmit(xbee.ADDR_COORDINATOR, payload, source_ep=source_ep, dest_ep=dest_ep, cluster=cluster, profile=profile,
tx_options=0) is None:
send = 1
#time.sleep(1)
except OSError as e:
time.sleep(1)
print(payload)
print(e)