Tether
TetherSerialConfig
The TetherSerialConfig
class configures the serial port parameters for the Tethering PPP connection.
serial - TetherSerialConfig
Select the hardware serial port to use for the tethering PPP connection. This must be a hardware serial port (not a USB serial port) and hardware flow control (RTS/CTS) is recommended.
// EXAMPLE
Tether.bind(TetherSerialConfig().baudrate(921600).serial(Serial1));
// PROTOTYPES
TetherSerialConfig& serial(USARTSerial& s);
USARTSerial& serial() const;
config - TetherSerialConfig
Select serial port configuration options. The values depend on the device and port.
The default is SERIAL_8N1 | SERIAL_FLOW_CONTROL_RTS_CTS
.
// PROTOTYPES
TetherSerialConfig& config(unsigned conf);
unsigned config() const;
baudrate - TetherSerialConfig
Select the hardware serial port baud rate to use for the tethering PPP connection.
The default is 921600.
// EXAMPLE
Tether.bind(TetherSerialConfig().baudrate(921600).serial(Serial1));
// PROTOTYPES
TetherSerialConfig& baudrate(unsigned baud);
unsigned baudrate() const;