Home > Software engineering >  XBee 2 Module sensor network and Python with Raspberry Pi - ONLY one Mac address from two different
XBee 2 Module sensor network and Python with Raspberry Pi - ONLY one Mac address from two different

Time:02-10

I am trying to set up a network of multiple nodes, I am receiving the different analog reading from the two end devices on the network. When I discover them both they have their separate MAC address are few and their Node ID that I configured to them. However, when I use the remote device in the io_sample_callback function it always output the same node ID. I need help! Side note I am using XBee 2 modules not the Xbee 3. Please help, the following is the code and a screenshot of output:

Beginning of Code***

Code screenshot 1/3

Code screenshot 2/3

Code screenshot 3/3

END of CODE**

OUTPUT: Python 3.7.3 (/usr/bin/python3)

%Run pi_xbee_mysql.py Connecting to MySQL...done. Welcome to example of storing data from a set of remote TMP36 sensors in MySQL! Discovering network......done. Found South Node at 0013A20041E57931. Found North Node at 0013A20041E57938. Temperature is -50.00C. -58.00F from node 0013A20041E57931 Temperature is 23.31C. 73.96F from node 0013A20041E57931

CodePudding user response:

  •  Tags:  
  • Related