Merge pull request #3407 from cesanta/unsub

Add mg_mqtt_unsub()
This commit is contained in:
Sergey Lyubka authored and GitHub committed 2026-01-14 11:17:50 +00:00
commit 8c65c2f9af
5 files changed
+54 -42

No files matched your search

+1
View File
@@ -2931,6 +2931,7 @@ struct mg_connection *mg_mqtt_listen(struct mg_mgr *mgr, const char *url,
void mg_mqtt_login(struct mg_connection *c, const struct mg_mqtt_opts *opts);
uint16_t mg_mqtt_pub(struct mg_connection *c, const struct mg_mqtt_opts *opts);
void mg_mqtt_sub(struct mg_connection *, const struct mg_mqtt_opts *opts);
void mg_mqtt_unsub(struct mg_connection *c, const struct mg_mqtt_opts *opts);
int mg_mqtt_parse(const uint8_t *, size_t, uint8_t, struct mg_mqtt_message *);
void mg_mqtt_send_header(struct mg_connection *, uint8_t cmd, uint8_t flags,
uint32_t len);