Xbee 3 Micropython/ ack

Hi All,

Hardware-xbee 3 /digimesh
Software-pycharm

I am trying to send a msg to the receiver and it sends and receives. When there is no network it gives the [Errno 7107] ENOTCONN in the (xbee repl) and seems like the program stops. Is there a way to restart xbee with code ?

After transmitting a message to the other xbee the receiving xbee should send an ack back to the sender. I am wondering is there a function in the library that breaks the message down? I used xbee.receive() it came out as “none”

Thank you in advance

Anthony

Yes you need to add message handling into your code.

https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#tasks/t_poll_idle.htm?Highlight=message%20handling

https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_errors_socket.htm?TocPath=Socket%2520examples%257C_____7

Thank you

Anthony