Python Serial Communication pyserial
suggest changeSyntax
- ser.read(size=1)
- ser.readline()
- ser.write()
Parameters
| parameter | details | |———––|———–| | port | Device name e.g. /dev/ttyUSB0 on GNU/Linux or COM3 on Windows.| | baudrate | baudrate type: int default: 9600 standard values: 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200 |
Remarks
For more details check out pyserial documentation
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents