mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-09 14:15:37 +08:00
19 lines
411 B
Markdown
19 lines
411 B
Markdown
---
|
|
title: "mg_mqtt_next()"
|
|
decl_name: "mg_mqtt_next"
|
|
symbol_kind: "func"
|
|
signature: |
|
|
struct mg_mqtt_session *mg_mqtt_next(struct mg_mqtt_broker *brk,
|
|
struct mg_mqtt_session *s);
|
|
---
|
|
|
|
Iterates over all MQTT session connections. Example:
|
|
|
|
```c
|
|
struct mg_mqtt_session *s;
|
|
for (s = mg_mqtt_next(brk, NULL); s != NULL; s = mg_mqtt_next(brk, s)) {
|
|
// Do something
|
|
}
|
|
```
|
|
|