Home/Support/Support Forum/How to set remote XBee parameters from a local XBee using set_parameter?Help needed!!

How to set remote XBee parameters from a local XBee using set_parameter?Help needed!!

0 votes
Hi,
I would like to set different parameters on my remote Xbee device using the set_parameter API in python. I am following the examples in the python sdk and in it in the SetAndGetParameterSample.py example, the local Xbee parameters are set.
Now what I try is as follows:

REMOTE_NODE_Id="REMOTE"
device=XBeeDevice(PORT,BAUDRATE) #Local XBee
device.open()
xbee_network=device.get_network()
remote_device=xbee_network.discover(REMOTE_NODE_ID)
remote_device.set_parameter("DH",utils.hex_string_to_bytes("0000"))
remote_device.set_parameter("DL",utils.hex_string_to_bytes("FFFF"))

But this does'nt seem to work. So how should I be setting the remote XBee parameters? In the python documentation provided by Xbee it says that the set and get parameter can be used with local and remote Xbee devices.
Anyone who could point me in the right direction? The devices are S1 Xbee. Pls respond!!
Thanks in advance!
asked Jun 26, 2018 in IEEE 802.15.4 by varun New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
Three years later and a newer version of radio, but this page was the first search result for "set_parameter", so it deserves an answer.

Using python 3.9, digi-xbee library v1.4.3, and an Xbee3

value = bytes.fromhex("FFFF")
remote_device.set_parameter("DL", value, apply=True)

I set pin parameters like this:

value = b'\x05' # set to Digital Out, High
remote_device.set_parameter("D5", value, apply=True)
answered Dec 6, 2021 by gregcompton New to the Community (1 point)
...