Dear,
I don’t know if https://code.google.com/p/python-xbee/ is the best library to use S2C Pro. I’m trying to use asynchronous mode, without success, the following code is the same than in PDF:
import serial
import time
from xbee import ZigBee
serial_port = serial.Serial('/dev/tty.usbserial-DA01MBXV', 9600)
def print_data(data):
print data
zigbee = ZigBee (serial_port, callback=print_data)
while True:
print '.'
try:
time.sleep(0.001)
except KeyboardInterrupt:
break
zigbee.halt()
serial_port.close()
All data sent to coordinator can be seen by XCTU, but nothing on python terminal.
Do you have any idea ?
Best regards,
Philippe.