Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,19 @@ int status_data_valid(const struct buffer status, unsigned int device_type);
*/
int command_data_valid(const struct buffer command, unsigned int device_type);

/**
* @brief Determine whether Module Gateway should forward a received command to the device
* immediately upon receipt, without waiting for the next status message.
*
* This function is optional. If not exported by the module, Module Gateway defaults to NOT_OK
* (existing behaviour: command is forwarded only on the next status).
*
* @param device_type type of device
* @return OK if the command should be forwarded immediately
* @return NOT_OK if the command should be forwarded on next status (default behaviour)
*/
int forward_command_on_receive(unsigned int device_type);

#ifdef __cplusplus
}
#endif