.num Property

Function:

Sets/returns the number of the currently selected serial port (ports are enumerated from 0).

Type:

Byte

Value Range:

The value of this property won't exceed ser.numofports - 1 (even if you attempt to set a higher value). Default = 0 (port #0 selected)

See Also:

---


Details

All other properties and methods of the ser. object relate to the serial port selected through this property. Note that serial port-related events such as on_ser_data_arrival change the currently selected port!


.num Property

Details