Can Xbee Gateway know which data came from which node in network?

Hello, I am trying to use a network of Xbee devices to send data to the Xbee Gateway, but I need to know which data came from which node. Can the gateway recognize the difference between nodes, or does that information need to be embedded in the message sent for the gateway to be able to tell the difference?

Well that depends on how your application is written. The XBee module within the Gateway is in API mode and does tell the gateway which module sent the data. So if you write or declare your sockets properly, you can find that data out.

Or if you are not that good with Python, it may be simpler for you to add a Address byte to your payload which can be determined by your Python app.