coreMQTT Agent v1.0.0
Thread safe MQTT 3.1.1 Client
MQTTAgentContext_t Struct Reference

Information used by each MQTT agent. A context will be initialized by MQTTAgent_Init(), and every API function will accept a pointer to the initalized struct. More...

#include <core_mqtt_agent.h>

Data Fields

MQTTContext_t mqttContext
  More...
 
MQTTAgentMessageInterface_t agentInterface
  More...
 
MQTTAgentAckInfo_t pPendingAcks [MQTT_AGENT_MAX_OUTSTANDING_ACKS]
  More...
 
MQTTAgentIncomingPublishCallback_t pIncomingCallback
  More...
 
void * pIncomingCallbackContext
  More...
 
bool packetReceivedInLoop
  More...
 

Detailed Description

Information used by each MQTT agent. A context will be initialized by MQTTAgent_Init(), and every API function will accept a pointer to the initalized struct.

Field Documentation

◆ mqttContext

MQTTContext_t MQTTAgentContext_t::mqttContext

MQTT connection information used by coreMQTT.

◆ agentInterface

MQTTAgentMessageInterface_t MQTTAgentContext_t::agentInterface

Struct of function pointers for agent messaging.

◆ pPendingAcks

MQTTAgentAckInfo_t MQTTAgentContext_t::pPendingAcks[MQTT_AGENT_MAX_OUTSTANDING_ACKS]

List of pending acknowledgment packets.

◆ pIncomingCallback

MQTTAgentIncomingPublishCallback_t MQTTAgentContext_t::pIncomingCallback

Callback to invoke for incoming publishes.

◆ pIncomingCallbackContext

void* MQTTAgentContext_t::pIncomingCallbackContext

Context for incoming publish callback.

◆ packetReceivedInLoop

bool MQTTAgentContext_t::packetReceivedInLoop

Whether a MQTT_ProcessLoop() call received a packet.


The documentation for this struct was generated from the following file: