bmsd/mqtt.c

changeset 75
1a3c6480e057
parent 0
033898178630
child 501
9c41e865144a
--- a/bmsd/mqtt.c	Sun Sep 30 21:43:13 2018 +0200
+++ b/bmsd/mqtt.c	Tue Oct 02 22:23:52 2018 +0200
@@ -98,6 +98,9 @@
 	topic = xstrcpy((char *)"mbv1.0/fermenters/#");		// Subscribe to fermenter messages.
 	mosquitto_subscribe(mosq, NULL, topic, 0);
 	free(topic);
+	topic = xstrcpy((char *)"mbv1.0/brewcontrol/#");	// Subscribe to brewcontrol messages.
+	mosquitto_subscribe(mosq, NULL, topic, 0);
+	free(topic);
 	topic = NULL;
        	mqtt_status = STATUS_CONNACK_RECVD;
     } else {

mercurial