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

Method setHost

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

* @brief Sets the TCP host address */

Source from the content-addressed store, hash-verified

677 * @brief Sets the TCP host address
678 */
679void IO::Drivers::Modbus::setHost(const QString& host)
680{
681 if (m_host == host)
682 return;
683
684 m_host = host;
685 m_settings.setValue("ModbusDriver/host", host);
686 Q_EMIT hostChanged();
687}
688
689/**
690 * @brief Sets the TCP port

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected