as the title said, i'm looking for a way to send an AT command to a remote xbee and read the response.
my code is in python and i'm using digi-xbee library.
another question: my goal of using AT command is to get the node ID of that remote xbee device when this last one send me a message, i don't want to do a full scan of the network, i just want to get its node id and obviously the node id doens't come within the frame. so i had to send to it an AT command so he send me back its node ID. if you have any suggestions that may help, please tell me, i'm open to any helpful idea.
PS. i tried to use read_device_info() within the callback function that launch when a data received but it didn't work. it works outside the function but inside no!
thanks in advance
when you recive a message you get an xbee_message object, first you must define a data receive callback function and add it to device . In that message you call remote_device_get_64bit_addr().
how to send remote AT command to xbee device using python digi-xbee library