![]() |
rodbus (C API) 1.6.0-RC1
|
Callbacks received when reading coils or discrete inputs. More...
#include <rodbus.h>
Data Fields | |
| void(* | on_complete )(rodbus_bit_value_iterator_t *, void *) |
| Invoked when the asynchronous operation completes successfully. More... | |
| void(* | on_failure )(rodbus_request_error_t, void *) |
| Invoked when the asynchronous operation fails. More... | |
| void(* | on_destroy )(void *arg) |
| Callback when the underlying owner doesn't need the interface anymore. More... | |
| void * | ctx |
| Context data. More... | |
Callbacks received when reading coils or discrete inputs.
On success, the iterator yields exactly the requested number of values in ascending, contiguous address order, beginning at the start of the requested rodbus_address_range_t. A response containing too few or too many values fails the request.
| void* rodbus_bit_read_callback_t::ctx |
Context data.
| void(* rodbus_bit_read_callback_t::on_complete) (rodbus_bit_value_iterator_t *, void *) |
Invoked when the asynchronous operation completes successfully.
| result | Iterator over the values read from the server, in ascending address order |
| ctx | Context data |
| void(* rodbus_bit_read_callback_t::on_destroy) (void *arg) |
Callback when the underlying owner doesn't need the interface anymore.
| arg | Context data |
| void(* rodbus_bit_read_callback_t::on_failure) (rodbus_request_error_t, void *) |
Invoked when the asynchronous operation fails.
| error | Enumeration indicating which error occurred |
| ctx | Context data |