Home/Support/Support Forum/How to read Digital input using Xbee

How to read Digital input using Xbee

0 votes
Hi,

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

import xbee
xbee.atcmd("D2")

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

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

Thanks
asked Dec 21, 2018 in MicroPython by aykatech New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
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.
answered Dec 21, 2018 by TomCollins Veteran of the Digi Community (1,457 points)
...