27#ifndef CORE_MQTT_AGENT_MESSAGE_INTERFACE_H
28#define CORE_MQTT_AGENT_MESSAGE_INTERFACE_H
42struct MQTTAgentMessageContext;
69 MQTTAgentCommand_t *
const * pCommandToSend,
70 uint32_t blockTimeMs );
85 MQTTAgentCommand_t ** pReceivedCommand,
86 uint32_t blockTimeMs );
105typedef MQTTAgentCommand_t * ( * MQTTAgentCommandGet_t )( uint32_t blockTimeMs );
132typedef struct MQTTAgentMessageInterface
MQTTAgentCommand_t *(* MQTTAgentCommandGet_t)(uint32_t blockTimeMs)
Obtain a MQTTAgentCommand_t structure.
Definition: core_mqtt_agent_message_interface.h:105
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:68
bool(* MQTTAgentCommandRelease_t)(MQTTAgentCommand_t *pCommandToRelease)
Give a MQTTAgentCommand_t structure back to the application.
Definition: core_mqtt_agent_message_interface.h:123
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:84
struct MQTTAgentMessageContext MQTTAgentMessageContext_t
Context with which tasks may deliver messages to the agent.
Definition: core_mqtt_agent_message_interface.h:54
The commands sent from the APIs to the MQTT agent task.
Definition: core_mqtt_agent.h:111
Function pointers and contexts used for sending and receiving commands, and allocating memory for the...
Definition: core_mqtt_agent_message_interface.h:133
MQTTAgentMessageContext_t * pMsgCtx
Definition: core_mqtt_agent_message_interface.h:134
MQTTAgentMessageRecv_t recv
Definition: core_mqtt_agent_message_interface.h:136
MQTTAgentCommandGet_t getCommand
Definition: core_mqtt_agent_message_interface.h:137
MQTTAgentMessageSend_t send
Definition: core_mqtt_agent_message_interface.h:135
MQTTAgentCommandRelease_t releaseCommand
Definition: core_mqtt_agent_message_interface.h:138