MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setSlaveAddress

Method setSlaveAddress

app/src/IO/Drivers/Modbus.cpp:717–725  ·  view source on GitHub ↗

* @brief Sets the slave address */

Source from the content-addressed store, hash-verified

715 * @brief Sets the slave address
716 */
717void IO::Drivers::Modbus::setSlaveAddress(const quint8 address)
718{
719 if (m_slaveAddress == address)
720 return;
721
722 m_slaveAddress = address;
723 m_settings.setValue("ModbusDriver/slaveAddress", address);
724 Q_EMIT slaveAddressChanged();
725}
726
727/**
728 * @brief Sets the polling interval in milliseconds

Callers 1

applyModbusSlaveFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected