digi.xbee.recovery module

digi.xbee.recovery.recover_device(target)[source]

Recovers the XBee from an unknown state and leaves if configured for normal operations.

Parameters

target (String or XBeeDevice) – Target of the recovery operation.

Raises

RecoveryException – If there is any error performing the recovery action.

digi.xbee.recovery.enter_at_command_mode(port)[source]

Attempts to put this device in AT Command mode.

Parameters

port – The serial port where the XBee is connected to.

Returns

True if the XBee has entered in AT command mode, False

otherwise.

Return type

Boolean

Raises
  • SerialTimeoutException – If there is any error trying to write to the serial port.

  • InvalidOperatingModeException – If the XBee is in API mode.