Glad to hear there is some progress . You use the "callee-owned tuple" just like a normal tuple. On the esp8266 you should be able to use:davef wrote: ↑Fri Dec 25, 2020 4:39 amHi glenn20,
Thank you for the feedback. Anytime you see the word "seemed" it means that things did not seem to work 100% of the time. When looking at traceback messages sometimes it "seemed" that a programming error later in the program would throw up an error at a earlier line number.
I got into a habit of commenting-out every line and introducing them one at a time, until an error would pop-up.
For the ESP8266:
Today, I do not have to put a value in init() in rx8266.py so remove that issue.of course throws a 'ESPNow' object is not iterable as you can only use this on the ESP32Code: Select all
for msg in e:
I do not know other ways of getting the "callee-owned" tuple of bytearrays into a form that I can use. Off to check with Mr. Google.
Dave
Code: Select all
pkt = e.irecv()
print("Peer MAC Address: {}".format(pkt[0])) # MAC address
print("Message: {}".format(pkt[1])) # Received message
Code: Select all
peer, msg = e.irecv()
print("Peer MAC Adress: {}".format(peer)) # MAC address
print("Message: {}".format(msg)) # Received message