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

MQTT streaming processor for the payload data of a PUBLISH message. More...

Classes

struct  MqttPayloadParserState
 

Macros

#define MQTT_PAYLOAD_PARSER_START   -1
 
#define MQTT_PAYLOAD_PARSER_END   -2
 
#define MQTT_PAYLOAD_LENGTH   1024
 

Typedefs

typedef Delegate< int(MqttPayloadParserState &state, mqtt_message_t *message, const char *buffer, int length)> MqttPayloadParser
 

Functions

int defaultPayloadParser (MqttPayloadParserState &state, mqtt_message_t *message, const char *buffer, int length)
 

Detailed Description

MQTT streaming processor for the payload data of a PUBLISH message.

Typedef Documentation

typedef Delegate<int(MqttPayloadParserState& state, mqtt_message_t* message, const char* buffer, int length)> MqttPayloadParser

A payload parser must return 0 on success