Microchip® Advanced Software Framework

mqtt_module Struct Reference

Structure of MQTT connection instance.

#include <mqtt.h>

Data Fields

mqtt_callback_t callback
 Callback interface entry. More...
 
MQTTClientclient
 Paho Client pointer associtated with instance. More...
 
struct mqtt_config config
 Configuration instance of MQTT module. More...
 
bool isConnected
 Connection Status of the module instance. More...
 
Network network
 Network structure used to store the mqtt socket information for an instance of mqtt module. More...
 

MQTTClient* mqtt_module::client
struct mqtt_config mqtt_module::config

Configuration instance of MQTT module.

That was registered from the mqtt_init

Referenced by mqtt_connect(), and mqtt_init().

bool mqtt_module::isConnected

Connection Status of the module instance.

Referenced by main(), mqtt_connect_broker(), mqtt_deinit(), and mqtt_disconnect().

Network mqtt_module::network

Network structure used to store the mqtt socket information for an instance of mqtt module.

Referenced by isMQTTSocket(), mqtt_connect(), and mqtt_init().