Sleep modes MicroPython sleep behavior
Digi XBee® 3 Cellular LTE Cat 1 AT&T Smart Modem User Guide
144
report as no longer being connected. This behavior appears the same as a typical socket
disconnection event will:
n socket.send raises OSError: ENOTCONN
n socket.sendto raises OSError: ENOTCONN
n socket.recv returns the empty string, the traditional end-of-file return value
n socket.recvfrom returns an empty message, for example:
(b'', (<address from connect()>, <port from connect()>) )
The underlying UDP socket resources have been released at this point.