Feb-10-2017, 11:15 AM
(Feb-09-2017, 05:20 PM)DougArndt Wrote: I'm doing something similar with a PicAXE over bluetooth, and found the ser.inWaiting() of use
while 1: while ser.inWaiting() > 20:
Hi thanks for that I did this.
while 1: try: msg = ser.readline() msg=msg.decode('utf-8') if len(msg) > 0: print(msg)
Now that only goes to print if msg is > than 0.
That stopped the code printing empty lines.
I will use your code next time.
holt24.