Python Forum
Receive Serial Data and store in different Variables in Python
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Receive Serial Data and store in different Variables in Python
#5
Thanks for the help, Actually I am receiving the data as mentioned below

hello\r\n
hello1\r\n
hello2\r\n

I just want to store the data in such a way that
>hello will be stored in variable a
>hello1 will be stored in variable b
>hello2 will be stored in variable c

and the \n\r will be minimized from the serial data
Reply


Messages In This Thread
RE: Receive Serial Data and store in different Variables in Python - by jenkins43 - Dec-28-2018, 12:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to receive two passed cmdline parameters and access them inside a Python script? pstein 2 360 Feb-17-2024, 12:29 PM
Last Post: deanhystad
  Receive Input on Same Line? johnywhy 8 736 Jan-16-2024, 03:45 AM
Last Post: johnywhy
  Create X Number of Variables and Assign Data RockBlok 8 978 Nov-14-2023, 08:46 AM
Last Post: perfringo
  pyserial/serial "has no attribute 'Serial' " gowb0w 9 4,171 Aug-24-2023, 07:56 AM
Last Post: gowb0w
  How to store columns of a .csv in variables (when the .csv has no headers) ? hobbyist 6 1,276 Aug-18-2023, 02:06 PM
Last Post: deanhystad
  Python Serial: How to read the complete line to insert to MySQL? sylar 1 835 Mar-21-2023, 10:06 PM
Last Post: deanhystad
  How to continuously receive messages until specified to stop using Bleak jacobbreen25 3 2,163 Dec-28-2022, 04:25 PM
Last Post: jacobbreen25
  How can I add an end line character after every value that I receive? GiggsB 11 5,221 Mar-06-2022, 08:51 PM
Last Post: GiggsB
  How to receive webcam capture on spout? buzzdarkyear 2 2,671 Jan-12-2022, 02:26 PM
Last Post: buzzdarkyear
  python serial port barryjo 2 1,667 Dec-27-2021, 11:09 PM
Last Post: barryjo

Forum Jump:

User Panel Messages

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