Python Forum
Problem to sent message with pyserial and ser.write
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem to sent message with pyserial and ser.write
#11
message = f'{message}\n'
ser.write(message.encode('ascii')
f-string require python 3.6 or newer
alternative:
message = '{}\n'.format(message)
Reply


Messages In This Thread
RE: Problem to sent message with pyserial and ser.write - by Larz60+ - Apr-15-2019, 03:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  write to csv file problem jacksfrustration 11 1,551 Nov-09-2023, 01:56 PM
Last Post: deanhystad
  little problem with read out and write into a file hello_its_me 11 8,546 Sep-04-2017, 11:54 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020