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

using MqttDelegate = Delegate< int(MqttClient &client, mqtt_message_t *message)>
 
using MqttRequestQueue = ObjectQueue< mqtt_message_t, MQTT_REQUEST_POOL_SIZE >
 
using MqttStringSubscriptionCallback = Delegate< void(String topic, String message)>
 
using MqttMessageDeliveredCallback = Delegate< void(uint16_t msgId, int type)>
 

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

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

◆ MqttMessageDeliveredCallback

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

◆ MqttRequestQueue

◆ MqttStringSubscriptionCallback

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

Enumeration Type Documentation

◆ MqttClientState

Enumerator
eMCS_Ready 
eMCS_SendingData