You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added the following code in file "ModBus/src/Request.h". When I want to use file "ModBus/src/SerialConnection.h" to communicate , I find there is no way to establish a bound connection between "modbus::PDU" and "modbus::Request".And I have to use this code "void SerialConnection::send_request(Request& request)" to send a request.
Hi Sorry for the long response.
Looks like that you need to use one of ReadHoldingRegistersRequest classes that are inherited from the Request class and have access to the internal field of _pdu.
And use ModbusSerialTransaction to execute transaction.
I have added the following code in file "ModBus/src/Request.h". When I want to use file "ModBus/src/SerialConnection.h" to communicate , I find there is no way to establish a bound connection between "modbus::PDU" and "modbus::Request".And I have to use this code "void SerialConnection::send_request(Request& request)" to send a request.
I'm a rookie. Please forgive me if I said something wrong.
The text was updated successfully, but these errors were encountered: