* @brief Sets the protocol index (0 = RTU, 1 = TCP) */
| 703 | * @brief Sets the protocol index (0 = RTU, 1 = TCP) |
| 704 | */ |
| 705 | void IO::Drivers::Modbus::setProtocolIndex(const quint8 index) |
| 706 | { |
| 707 | if (index < 2 && m_protocolIndex != index) { |
| 708 | m_protocolIndex = index; |
| 709 | m_settings.setValue("ModbusDriver/protocolIndex", index); |
| 710 | Q_EMIT protocolIndexChanged(); |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | /** |
| 715 | * @brief Sets the slave address |
no outgoing calls
no test coverage detected