from digi.xbee.devices import XBeeDevice

PORT = "/dev/ttyUSB1"
BAUD_RATE = 230400

device = XBeeDevice(PORT, BAUD_RATE)
def main():
    device.open()

    def data_receive_callback(xbee_message):
            #print("From %s >> %s" % (xbee_message.remote_device.get_64bit_addr(),
            #                         xbee_message.data.decode()))
            indata = bytes(xbee_message.data)
            print(indata)

    device.add_data_received_callback(data_receive_callback)

    print("Waiting for data...\n")
    input()

if __name__ == '__main__':
    main()
88f24388ae60a74c69baac6a06288a67a71d58ab
<mask token>


def main():
    device.open()

    def data_receive_callback(xbee_message):
        indata = bytes(xbee_message.data)
        print(indata)
    device.add_data_received_callback(data_receive_callback)
    print('Waiting for data...\n')
    input()


<mask token>

<mask token>


def main():
    device.open()

    def data_receive_callback(xbee_message):
        indata = bytes(xbee_message.data)
        print(indata)
    device.add_data_received_callback(data_receive_callback)
    print('Waiting for data...\n')
    input()


if __name__ == '__main__':
    main()

<mask token>
PORT = '/dev/ttyUSB1'
BAUD_RATE = 230400
device = XBeeDevice(PORT, BAUD_RATE)


def main():
    device.open()

    def data_receive_callback(xbee_message):
        indata = bytes(xbee_message.data)
        print(indata)
    device.add_data_received_callback(data_receive_callback)
    print('Waiting for data...\n')
    input()


if __name__ == '__main__':
    main()

from digi.xbee.devices import XBeeDevice
PORT = '/dev/ttyUSB1'
BAUD_RATE = 230400
device = XBeeDevice(PORT, BAUD_RATE)


def main():
    device.open()

    def data_receive_callback(xbee_message):
        indata = bytes(xbee_message.data)
        print(indata)
    device.add_data_received_callback(data_receive_callback)
    print('Waiting for data...\n')
    input()


if __name__ == '__main__':
    main()

from digi.xbee.devices import XBeeDevice

PORT = "/dev/ttyUSB1"
BAUD_RATE = 230400

device = XBeeDevice(PORT, BAUD_RATE)
def main():
    device.open()

    def data_receive_callback(xbee_message):
            #print("From %s >> %s" % (xbee_message.remote_device.get_64bit_addr(),
            #                         xbee_message.data.decode()))
            indata = bytes(xbee_message.data)
            print(indata)

    device.add_data_received_callback(data_receive_callback)

    print("Waiting for data...\n")
    input()

if __name__ == '__main__':
    main()