27#ifndef CORE_MQTT_AGENT_MESSAGE_INTERFACE_H
28#define CORE_MQTT_AGENT_MESSAGE_INTERFACE_H
36struct MQTTAgentMessageContext;
63 MQTTAgentCommand_t *
const * pCommandToSend,
64 uint32_t blockTimeMs );
79 MQTTAgentCommand_t ** pReceivedCommand,
80 uint32_t blockTimeMs );
99typedef MQTTAgentCommand_t * ( * MQTTAgentCommandGet_t )( uint32_t blockTimeMs );
126typedef struct MQTTAgentMessageInterface
MQTTAgentCommand_t *(* MQTTAgentCommandGet_t)(uint32_t blockTimeMs)
Obtain a MQTTAgentCommand_t structure.
Definition: core_mqtt_agent_message_interface.h:99
bool(* MQTTAgentMessageSend_t)(MQTTAgentMessageContext_t *pMsgCtx, MQTTAgentCommand_t *const *pCommandToSend, uint32_t blockTimeMs)
Send a message to the specified context. Must be thread safe.
Definition: core_mqtt_agent_message_interface.h:62
bool(* MQTTAgentCommandRelease_t)(MQTTAgentCommand_t *pCommandToRelease)
Give a MQTTAgentCommand_t structure back to the application.
Definition: core_mqtt_agent_message_interface.h:117
bool(* MQTTAgentMessageRecv_t)(MQTTAgentMessageContext_t *pMsgCtx, MQTTAgentCommand_t **pReceivedCommand, uint32_t blockTimeMs)
Receive a message from the specified context. Must be thread safe.
Definition: core_mqtt_agent_message_interface.h:78
struct MQTTAgentMessageContext MQTTAgentMessageContext_t
Context with which tasks may deliver messages to the agent.
Definition: core_mqtt_agent_message_interface.h:48
The commands sent from the APIs to the MQTT agent task.
Definition: core_mqtt_agent.h:137
Function pointers and contexts used for sending and receiving commands, and allocating memory for the...
Definition: core_mqtt_agent_message_interface.h:127
MQTTAgentMessageContext_t * pMsgCtx
Definition: core_mqtt_agent_message_interface.h:128
MQTTAgentMessageRecv_t recv
Definition: core_mqtt_agent_message_interface.h:130
MQTTAgentCommandGet_t getCommand
Definition: core_mqtt_agent_message_interface.h:131
MQTTAgentMessageSend_t send
Definition: core_mqtt_agent_message_interface.h:129
MQTTAgentCommandRelease_t releaseCommand
Definition: core_mqtt_agent_message_interface.h:132