Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
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 } |
Provides MQTT client.
#define MQTT_MAX_BUFFER_SIZE MQTT_PAYLOAD_LENGTH |
#define MQTT_MSG_PUBREC MQTT_TYPE_PUBREC |
typedef Delegate<void(uint16_t msgId, int type)> MqttMessageDeliveredCallback |
typedef Delegate<void(String topic, String message)> MqttStringSubscriptionCallback |