bmsd/mqtt.c

changeset 572
7a03181d29a3
parent 567
6bf0afc33e70
child 578
e75ce5bbda73
--- a/bmsd/mqtt.c	Sat Dec 14 21:04:47 2019 +0100
+++ b/bmsd/mqtt.c	Sun Dec 15 15:08:09 2019 +0100
@@ -103,6 +103,9 @@
 	topic = xstrcpy((char *)"mbv1.0/co2meters/#");	// Subscribe to co2meter messages.
 	mosquitto_subscribe(mosq, NULL, topic, 0);
 	free(topic);
+	topic = xstrcpy((char *)"ispindel/#");  // Subscribe to ispindel messages.
+        mosquitto_subscribe(mosq, NULL, topic, 0);
+        free(topic);
 	topic = NULL;
        	mqtt_status = STATUS_CONNACK_RECVD;
     } else {

mercurial