All i want to do is basically a way to launch&stop streaming via phyton code.
Thanks! I'm such a Python noob really. I wish i knew a Python Language reference like Arduino Referance in Arduino website.joan wrote:Python requires a colon at the end of the if statement.
No. Does it have to be?Douglas6 wrote:Is the data you are sending terminated with newline (\n) characters?nautilus27 wrote:OK, this should've helped me but I get zero response from Raspberry Pi. Perhaps my baudrate is not correct?
Code: Select all
import serial ser = serial.Serial("/dev/rfcomm0", baudrate=9600, timeout=0.5) while 1: print ser.readline(),
Sounds great. Is there any tutorial on PySerial for starters that you suggest?Douglas6 wrote:An RFCOMM channel acts exactly like a serial communications port. So any library that can do serial communication (like PySerial) can be used to read and write to the /dev/rfcomm0 device.