Home/Support/Support Forum/Xbee 3 Micropython/ ack

Xbee 3 Micropython/ ack

0 votes
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
asked Aug 12 in MicroPython by hchien New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
 
Best answer
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
answered Aug 16 by mvut Veteran of the Digi Community (15,409 points)
selected Aug 17 by hchien
Thank you

Anthony
...