mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-24 11:54:49 +00:00
Don't use user_data in mqtt server
Integrates https://github.com/cesanta/mongoose/pull/884 Closes https://github.com/cesanta/mongoose/issues/883 CL: Mongoose Web Server: Don't use user_data in mqtt server PUBLISHED_FROM=7785784a766e0ba7514bbba604cde14e7bad3f73
This commit is contained in:
1 parent
0b4bf13335
commit
7d7bb3b388
2 files changed
+11
-12
No files matched your search
@@ -38,7 +38,7 @@ int main(void) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
mg_mqtt_broker_init(&brk, NULL);
|
||||
c->user_data = &brk;
|
||||
c->priv_2 = &brk;
|
||||
mg_set_protocol_mqtt(c);
|
||||
|
||||
printf("MQTT broker started on %s\n", s_listening_address);
|
||||
|
||||
Reference in new issue
Block a user