check_unit_id()#

ModbusTransport.check_unit_id(unit_id: int) → int[source]#

Validate unit_id against this physical layer’s range (0 to _max_unit_id) and return it.