How to read Digital input using Xbee


We have configured the DI2 as Digital Input (3) in the xctu in Xbee3.
Using Micro python,

import xbee

This is always reads as 3, not the input High or Low.

How to read the digital input pin using atcmd and micropython.


On XBee3 Cellular (and XBee3 Zigbee in early 2019), you’d want to use the machine.Pin() class to read the input pin.

Unfortunately I don’t think MicroPython on the current XBee3 Zigbee firmware has a way to read the input.