# ModbusRtu
## Méthodes
### ModbusRtu.AddModbusRtuMaster
ADMIN
Add a new modbus RTU master with the given configuration. The timeout value is in milli seconds and the minimum value is 10 ms.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `baudrate` | `Uint` | |
| `dataBits` | [SerialPortDataBits](../types.md#serialportdatabits) | |
| `numberOfRetries` | `Uint` | |
| `parity` | [SerialPortParity](../types.md#serialportparity) | |
| `serialPort` | `String` | |
| `stopBits` | [SerialPortStopBits](../types.md#serialportstopbits) | |
| `timeout` | `Uint` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `modbusError` | [ModbusRtuError](../types.md#modbusrtuerror) | |
| `modbusUuid` | `Uuid` | optionnel |
---
### ModbusRtu.GetModbusRtuMasters
ADMIN
Get the list of configured modbus RTU masters.
**Paramètres :**
_Aucun paramètre._
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `modbusError` | [ModbusRtuError](../types.md#modbusrtuerror) | |
| `modbusRtuMasters` | [ModbusRtuMaster](../types.md#modbusrtumaster)[] | optionnel |
---
### ModbusRtu.GetSerialPorts
ADMIN
Get the list of available serial ports from the host system.
**Paramètres :**
_Aucun paramètre._
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `serialPorts` | [SerialPorts](../types.md#serialports) | |
---
### ModbusRtu.ReconfigureModbusRtuMaster
ADMIN
Reconfigure the modbus RTU master with the given UUID and configuration.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `baudrate` | `Uint` | |
| `dataBits` | [SerialPortDataBits](../types.md#serialportdatabits) | |
| `modbusUuid` | `Uuid` | |
| `numberOfRetries` | `Uint` | |
| `parity` | [SerialPortParity](../types.md#serialportparity) | |
| `serialPort` | `String` | |
| `stopBits` | [SerialPortStopBits](../types.md#serialportstopbits) | |
| `timeout` | `Uint` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `modbusError` | [ModbusRtuError](../types.md#modbusrtuerror) | |
---
### ModbusRtu.RemoveModbusRtuMaster
ADMIN
Remove the modbus RTU master with the given modbus UUID.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `modbusUuid` | `Uuid` | |
**Retour :**
| Champ | Type | Notes |
| --- | --- | --- |
| `modbusError` | [ModbusRtuError](../types.md#modbusrtuerror) | |
---
## Notifications
### ModbusRtu.ModbusRtuMasterAdded
Emitted whenever a new modbus RTU master has been added to the system.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `modbusRtuMaster` | [ModbusRtuMaster](../types.md#modbusrtumaster) | |
---
### ModbusRtu.ModbusRtuMasterChanged
Emitted whenever a modbus RTU master has been changed in the system.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `modbusRtuMaster` | [ModbusRtuMaster](../types.md#modbusrtumaster) | |
---
### ModbusRtu.ModbusRtuMasterRemoved
Emitted whenever a modbus RTU master has been removed from the system.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `modbusUuid` | `Uuid` | |
---
### ModbusRtu.SerialPortAdded
Emitted whenever a serial port has been added to the system.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `serialPort` | [SerialPort](../types.md#serialport) | |
---
### ModbusRtu.SerialPortRemoved
Emitted whenever a serial port has been removed from the system.
**Paramètres :**
| Champ | Type | Notes |
| --- | --- | --- |
| `serialPort` | [SerialPort](../types.md#serialport) | |
---