I have a raspberry pi 3 running a python script that eventually ends up with a string of characters.
How can I pipe them to
minimodem so I can transmit them?
minimodem starts transmitting with:
minimodem --TX 300
I have this code :
if key_pressed==0 and key!=0: message_string = ''.join(message) print(message_string) p1 = subprocess.Popen(["minimodem" , "--tx" , "300"], stdin=subprocess.PIPE) p1.stdin.write(message_string)
And I get this error :
File "./Documents/Examples/texting.py", line 145, in main p1.stdin.write(message_string) TypeError: 'str' does not support the buffer interface
Sometimes it works and some times doesn't.
Can anybody help me?