Expand description
Application-level traits and callback definitions. Users implement these to handle data returned by the Modbus server. These modules are conditionally compiled based on features. Modbus Application Layer Module
This module provides the high-level abstractions and traits required for application-level interaction with the Modbus protocol.
It defines:
- Response handling traits ([
CoilResponse], [RegisterResponse], etc.) that allow users to define custom logic for processing server responses. - Error notification mechanisms ([
RequestErrorNotifier]). - Re-exports of core data structures used by the application layer for convenient access.
Traitsยง
- Coil
Response - Trait defining the expected response handling for coil-related Modbus operations.
- Diagnostics
Response - Trait for handling Diagnostics-family responses.
- Discrete
Input Response - Defines callbacks for handling responses to Modbus discrete input-related requests.
- Fifo
Queue Response - Trait defining the expected response handling for FIFO Queue Modbus operations.
- File
Record Response - Trait defining the expected response handling for File Record Modbus operations.
- Register
Response - Defines callbacks for handling responses to Modbus register-related requests.
- Request
Error Notifier - Trait for receiving notifications about failed Modbus requests.