mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Fix #920 - add MQTT over Websocket client example
This commit is contained in:
1 parent
3ea4f1fda8
commit
568484f079
9 files changed
+717
-52
No files matched your search
@@ -874,6 +874,7 @@ struct mg_connection *mg_ws_connect(struct mg_mgr *, const char *url,
|
||||
void mg_ws_upgrade(struct mg_connection *, struct mg_http_message *,
|
||||
const char *fmt, ...);
|
||||
size_t mg_ws_send(struct mg_connection *, const char *buf, size_t len, int op);
|
||||
size_t mg_ws_wrap(struct mg_connection *, size_t len, int op);
|
||||
|
||||
|
||||
|
||||
@@ -931,6 +932,8 @@ struct mg_connection *mg_mqtt_connect(struct mg_mgr *, const char *url,
|
||||
mg_event_handler_t fn, void *fn_data);
|
||||
struct mg_connection *mg_mqtt_listen(struct mg_mgr *mgr, const char *url,
|
||||
mg_event_handler_t fn, void *fn_data);
|
||||
void mg_mqtt_login(struct mg_connection *c, const char *url,
|
||||
struct mg_mqtt_opts *opts);
|
||||
void mg_mqtt_pub(struct mg_connection *c, struct mg_str *topic,
|
||||
struct mg_str *data, int qos, bool retain);
|
||||
void mg_mqtt_sub(struct mg_connection *, struct mg_str *topic, int qos);
|
||||
|
||||
Reference in new issue
Block a user