Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
MQTT client

Provides MQTT client. More...

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 std::function< int(MqttClient &client, mqtt_message_t *message)> MqttDelegate
 
typedef ObjectQueue< mqtt_message_t, MQTT_REQUEST_POOL_SIZE > MqttRequestQueue
 
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

#define MQTT_MAX_BUFFER_SIZE   MQTT_PAYLOAD_LENGTH
#define MQTT_MSG_PUBREC   MQTT_TYPE_PUBREC

Typedef Documentation

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