mongoose/docs/c-api/mqtt.h/mg_mqtt_next_subscribe_topic.md
Dmitry Frank 849ec1684a Apply Mongoose docs edits by Ev
PUBLISHED_FROM=5cd78790a03580aa23dd3d2d8b825ad449083cc2
2016-07-26 15:06:04 +00:00

502 B

title decl_name symbol_kind signature
mg_mqtt_next_subscribe_topic() mg_mqtt_next_subscribe_topic func int mg_mqtt_next_subscribe_topic(struct mg_mqtt_message *msg, struct mg_str *topic, uint8_t *qos, int pos);

Extracts the next topic expression from a SUBSCRIBE command payload.

The topic expression name will point to a string in the payload buffer. Returns the pos of the next topic expression or -1 when the list of topics is exhausted.