|
MySensors Library & Examples
2.3.2-62-ge298769
|
36 std::string serialPort;
43 SerialPort(
const char *port,
bool isPty =
false);
51 void begin(
int bauds);
58 bool open(
int bauds = 115200);
86 size_t write(uint8_t b);
94 size_t write(
const uint8_t *buffer,
size_t size);
int read()
Reads 1 byte of incoming serial data.
int available()
Get the number of bytes available.
bool open(int bauds=115200)
Open the serial port and set the data rate in bits per second (baud).
size_t write(uint8_t b)
Writes a single byte to the serial port.
bool setGroupPerm(const char *groupName)
Grant access to the specified system group for the serial device.
int peek()
Returns the next byte (character) of incoming serial data without removing it from the internal seria...
void end()
Disables serial communication.
void flush()
Remove any data remaining on the serial buffer.
void begin(int bauds)
Open the serial port and set the data rate in bits per second (baud).
SerialPort(const char *port, bool isPty=false)
SerialPort constructor.