MultiSerial Class¶
- class pyMultiSerial.MultiSerial¶
- __init__()¶
On creating object of class MultiSerial, port parameters are set up. All ports are configured with the same parameters.
- Start()¶
Start the monitoring of ports.
- Stop()¶
Stop the monitoring of ports.
Attributes
- baudrate(Necessary)¶
- Type
int
Sets baudrate for the serial ports.
- timeout(Optional)¶
- Type
int
Sets timeout for the serial ports. Default value = 2 sec
- portno_range(Optional)¶
- Type
int
Sets range of port numbers to monitor starting from 0. Default value = 29
- monitoring_freq(Optional)¶
- Type
int
Sets monitoring frequency. Default value = 0 msec
- port_connection_found_callback(Optional)¶
- Type
function
Sets callback function for Event when new serial port connection is found
- port_read_callback(Optional)¶
- Type
function
Sets callback function for Event when data is received on any serial port
- port_disconnection_callback(Optional)¶
- Type
function
Sets callback function for Event when a port is disconnected
- interrupt_callback(Optional)¶
- Type
function
Sets callback function for Event when execution of program is interrupted
- loop_callback(Optional)¶
- Type
function
Sets callback function to be executed in continuous loops.