Skip to main content

Module config

Module config 

Source
Expand description

Serial port configuration enums, constants, and global log level.

Structs§

ModemLinesOnOpen
DTR / RTS levels to apply when a port is opened (None = platform default: unchanged on desktop, asserted on Android). Deasserting DTR keeps Arduino-style boards from resetting on open; on Linux the kernel still pulses DTR briefly.

Enums§

ClearBuffer
Buffer types for clearing serial port buffers
DataBits
Number of bits per character for serial communication
FlowControl
Flow control modes for serial communication
LogLevel
Logging level for controlling plugin verbosity
Parity
Parity checking modes for serial communication
StopBits
Number of stop bits for serial communication

Constants§

BLUETOOTH
Bluetooth serial port
PCI
PCI serial port
UNKNOWN
Port type constants for identifying serial port types
USB
USB serial port

Functions§

get_log_level
Gets the current global log level
set_log_level
Sets the global log level for the plugin