Provides MQTT client. More...

Collaboration diagram for MQTT client:

Classes

class  MqttClient
 

Macros

#define MQTT_REQUEST_POOL_SIZE   10
 
#define MQTT_CLIENT_CONNECTED   bit(1)
 
#define MQTT_FLAG_RETAINED   1
 
#define MQTT_MAX_BUFFER_SIZE   MQTT_PAYLOAD_LENGTH
 
#define MQTT_MSG_PUBREC   MQTT_TYPE_PUBREC
 

Typedefs

typedef Delegate< int(MqttClient &client, mqtt_message_t *message)> MqttDelegate
 
typedef ObjectQueue< mqtt_message_t, MQTT_REQUEST_POOL_SIZEMqttRequestQueue
 
typedef Delegate< void(String topic, String message)> MqttStringSubscriptionCallback
 
typedef Delegate< void(uint16_t msgId, int type)> MqttMessageDeliveredCallback
 

Enumerations

enum  MqttClientState { eMCS_Ready = 0, eMCS_SendingData }
 

Detailed Description

Provides MQTT client.

Macro Definition Documentation

◆ MQTT_CLIENT_CONNECTED

#define MQTT_CLIENT_CONNECTED   bit(1)

◆ MQTT_FLAG_RETAINED

#define MQTT_FLAG_RETAINED   1

◆ MQTT_MAX_BUFFER_SIZE

#define MQTT_MAX_BUFFER_SIZE   MQTT_PAYLOAD_LENGTH

◆ MQTT_MSG_PUBREC

#define MQTT_MSG_PUBREC   MQTT_TYPE_PUBREC

◆ MQTT_REQUEST_POOL_SIZE

#define MQTT_REQUEST_POOL_SIZE   10

Typedef Documentation

◆ MqttDelegate

typedef Delegate<int(MqttClient& client, mqtt_message_t* message)> MqttDelegate

◆ MqttMessageDeliveredCallback

typedef Delegate<void(uint16_t msgId, int type)> MqttMessageDeliveredCallback
Deprecated:
Use MqttDelegate instead

◆ MqttRequestQueue

◆ MqttStringSubscriptionCallback

typedef Delegate<void(String topic, String message)> MqttStringSubscriptionCallback
Deprecated:
Use MqttDelegate instead

Enumeration Type Documentation

◆ MqttClientState

Enumerator
eMCS_Ready 
eMCS_SendingData