Nov-11-2021, 01:13 PM
Still not working
maybe you can see what is wrong
Sender side python2 :
Thanks ,
maybe you can see what is wrong
Sender side python2 :
send = serial.Serial( port='/dev/serial0', baudrate = 9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, timeout=1 while True: send.write('test') time.sleep(200)Receiver side Python3:
while True: x = ser.read() data = str(x) -->not working et the same b'\xbb\x1b\xfe' data1 = str(x).decode('utf-8') --> error AttributeError: 'str' object has no attribute 'decode' print(data) print(data1)?
Thanks ,