Add mg_mqtt_pubex

This commit is contained in:
cpq committed 2021-06-10 19:15:50 +01:00
1 parent 886a29d659
commit a15d518571
6 files changed
+58 -21

No files matched your search

+9
View File
@@ -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()