6/13/2023 0 Comments Python flush serial port bufferI don’t have a screenshot of the result from work, though! The Arduino Uno has a code that is prepared to send a JSON object to its serial port when it catches a string “getData” on its serial port! So, my colleague asked me to write a script to automatically send this string and fetch the JSON object into a variable.Īt work I was able to get the JSON object in Putty even if completely out of format, but I got it, using 2 separate scripts (goal is to use only one). We use Windows computers, so we are connecting to Rpi 4 via Putty. They are conencted via USB cable and we connect to the Rpi 4 via work Wireless network. We are working with an Arduino Uno and a Rpi 4. I’m kind of new to Python and Arduino but I started to work recently with these two, so I need some help.
0 Comments
Leave a Reply. |