|
bool | connect (const std::string &addr, int port, bool closeOldConnection=true) noexcept |
|
bool | connect (const Poco::Net::SocketAddress &addr, int _port, bool closeOldConnection=true) noexcept |
|
void | disconnect () |
|
void | forceDisconnect () |
|
bool | isConnection () const |
|
void | setForceDisconnect (bool s) |
|
bool | reconnect () |
|
void | cleanInputStream () |
|
virtual void | cleanupChannel () override |
|
std::string | getAddress () const |
|
int | getPort () const |
|
void | setReadTimeout (timeout_t msec) |
|
timeout_t | getReadTimeout () const |
|
ModbusRTU::ReadCoilRetMessage | read01 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData start, ModbusRTU::ModbusData count) |
|
ModbusRTU::ReadInputStatusRetMessage | read02 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData start, ModbusRTU::ModbusData count) |
|
ModbusRTU::ReadOutputRetMessage | read03 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData start, ModbusRTU::ModbusData count) |
|
ModbusRTU::ReadInputRetMessage | read04 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData start, ModbusRTU::ModbusData count) |
|
ModbusRTU::ForceSingleCoilRetMessage | write05 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData reg, bool cmd) |
|
ModbusRTU::WriteSingleOutputRetMessage | write06 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData reg, ModbusRTU::ModbusData data) |
|
ModbusRTU::ForceCoilsRetMessage | write0F (ModbusRTU::ForceCoilsMessage &msg) |
|
ModbusRTU::WriteOutputRetMessage | write10 (ModbusRTU::WriteOutputMessage &msg) |
|
ModbusRTU::DiagnosticRetMessage | diag08 (ModbusRTU::ModbusAddr addr, ModbusRTU::DiagnosticsSubFunction subfunc, ModbusRTU::ModbusData dat=0) |
|
ModbusRTU::MEIMessageRetRDI | read4314 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusByte devID, ModbusRTU::ModbusByte objID) |
|
ModbusRTU::SetDateTimeRetMessage | setDateTime (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusByte hour, ModbusRTU::ModbusByte min, ModbusRTU::ModbusByte sec, ModbusRTU::ModbusByte day, ModbusRTU::ModbusByte mon, ModbusRTU::ModbusByte year, ModbusRTU::ModbusByte century) |
|
ModbusRTU::FileTransferRetMessage | partOfFileTransfer (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData idFile, ModbusRTU::ModbusData numpack, timeout_t part_timeout_msec=2000) |
|
void | fileTransfer (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData idFile, const std::string &save2filename, timeout_t part_timeout_msec=2000) |
|
void | setTimeout (timeout_t msec) |
|
int | setAfterSendPause (timeout_t msec) |
|
void | setSleepPause (timeout_t usec) |
|
void | initLog (std::shared_ptr< uniset::Configuration > conf, const std::string &name, const std::string &logfile="") |
|
void | setLog (std::shared_ptr< DebugStream > dlog) |
|
void | setCRCNoCheckit (bool set) |
|
bool | isCRCNoCheckit () const |
|
|
virtual size_t | getNextData (unsigned char *buf, size_t len) override |
|
virtual void | setChannelTimeout (timeout_t msec) override |
|
virtual ModbusRTU::mbErrCode | sendData (unsigned char *buf, size_t len) override |
|
virtual ModbusRTU::mbErrCode | query (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusMessage &msg, ModbusRTU::ModbusMessage &reply, timeout_t timeout) override |
|
virtual ModbusRTU::mbErrCode | send (ModbusRTU::ModbusMessage &msg) |
|
virtual ModbusRTU::mbErrCode | recv (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusByte qfunc, ModbusRTU::ModbusMessage &rbuf, timeout_t timeout) |
|
virtual ModbusRTU::mbErrCode | recv_pdu (ModbusRTU::ModbusByte qfunc, ModbusRTU::ModbusMessage &rbuf, timeout_t timeout) |
|
void | printProcessingTime () |
|
Modbus TCP master interface