serial – Sending a string from rpi to arduino serially

0
59

To send anything from a rpi to the arduino serially, I know that It has to be sent as bytes hence I am sending a string as follows(in python):

stringA = "Hello"
sendString = stringA.encode('UTF-8','strict')

The thing I have a question about is on how to convert the byte string received on the arduino back into the string “Hello”. Is there some sort on decode function?

LEAVE A REPLY

Please enter your comment!
Please enter your name here