Tue, 02 Oct 2018 22:23:52 +0200
Added support for brewcontrol nodes
bmsd/mqtt.c | file | annotate | diff | comparison | revisions | |
www/mon_node.php | file | annotate | diff | comparison | revisions |
--- 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 {
--- a/www/mon_node.php Sun Sep 30 21:43:13 2018 +0200 +++ b/www/mon_node.php Tue Oct 02 22:23:52 2018 +0200 @@ -49,7 +49,7 @@ html += "<tr><td>Eerst gezien</td><td>" + record.firstseen + "</td></tr>"; html += "<tr><td>Laatst gezien</td><td>" + record.lastseen + "</td></tr>"; html += "<tr><td>Hardware maker</td><td>" + record.hardwaremake+ "</td></tr>"; - html += "<tr><td>Hardware model</td><td>" + record.harwaremodel+ "</td></tr>"; + html += "<tr><td>Hardware model</td><td>" + record.hardwaremodel+ "</td></tr>"; html += "<tr><td>OS</td><td>" + record.os + " versie: " + record.os_version + "</td></tr>"; html += "<tr><td>Firmware</td><td>" + record.firmware + "</td></tr>"; if (record.online) {