So, instead of using the flags field for tagging the different sensor data streams, I would like to be able to send a packet with BOTH the data stream indicator ( 1 through 6) and the data. So instead of:
Code: Select all
while True:
temperature = str(round((newsensor.temperature), 2))
rfm9x.flags=1
if not rfm9x.send_with_ack(temperature.encode("utf-8")):
print("No Ack T")
await asyncio.sleep(interval)
Code: Select all
while True:
temperature = str(round((newsensor.temperature), 2))
#rfm9x.flags=1
#print(rfm9x.flags, temperature)
temperature_ packet = str(1,temperature)
if not rfm9x.send_with_ack(temperature_packet.encode("utf-8")):
print("No Ack T")
await asyncio.sleep(interval)
Roger