mg_mqtt_next_subscribe_topic.md 502 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
---
title: "mg_mqtt_next_subscribe_topic()"
decl_name: "mg_mqtt_next_subscribe_topic"
symbol_kind: "func"
signature: |
  int mg_mqtt_next_subscribe_topic(struct mg_mqtt_message *msg,
                                   struct mg_str *topic, uint8_t *qos, int pos);
---

10
Extracts the next topic expression from a SUBSCRIBE command payload.
11

12 13
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
14 15
of topics is exhausted.