mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Add mg_mqtt_pubex
This commit is contained in:
1 parent
886a29d659
commit
a15d518571
6 files changed
+58
-21
No files matched your search
@@ -982,6 +982,15 @@ void mg_mqtt_pub(struct mg_connection *, struct mg_str *topic,
|
||||
|
||||
Publish message `data` to the topic `topic`.
|
||||
|
||||
### mg\_mqtt\_pubex()
|
||||
|
||||
```c
|
||||
void mg_mqtt_pubex(struct mg_connection *, struct mg_str *topic,
|
||||
struct mg_str *data, int qos, bool retain);
|
||||
```
|
||||
|
||||
Like `mg_mqtt_pub()` but also allows to set QoS and retain flag.
|
||||
|
||||
|
||||
### mg\_mqtt\_sub()
|
||||
|
||||
|
||||
Reference in new issue
Block a user