|
ResponseStatus | parse (frame_buffer_t &frame, uint16_t len) override |
| Parse a message frame buffer and store the outcome in this response. More...
|
|
uint16_t | address () const |
| Get the address from the device response, which should match the address that was requested. More...
|
|
const std::vector< uint16_t > & | data () const |
| Data from the device response, which may be fewer or more register values than requested. More...
|
|
bool | done () const |
| Determine if the request is complete. More...
|
|
bool | pending () const |
| Determine if the request is still pending. More...
|
|
bool | success () const |
| Determine if the request was successful. More...
|
|
bool | exception () const |
| Determine if the request returned an exception. More...
|
|
bool | failed () const |
| Determine if the request failed for a reason other than an exception. More...
|
|
ResponseStatus | status () const |
| Get the status of the response message. More...
|
|
void | status (ResponseStatus status) |
| Set the status of the response message. More...
|
|
uint8_t | exception_code () const |
| Get the exception code from the device response. More...
|
|
void | exception_code (uint8_t exception_code) |
| Set the exception code from the device response. More...
|
|
Register write response message.
This will be created when a request is submitted and then later updated with the outcome. Poll the status() of the response to know when to access data.
- Since
- 0.1.0
Definition at line 280 of file modbus.h.