# HG changeset patch # User Michiel Broek # Date 1697117096 -7200 # Node ID 26cc7ea0f790da5e04ca5343e00ada69ce5c1b7a # Parent 16079aef4c4cf37644206504437eaaf7ee1f2d27 Send lastseen iSpindel over websocket. Disabled a debug logmessage again. diff -r 16079aef4c4c -r 26cc7ea0f790 bmsd/ispindels.c --- a/bmsd/ispindels.c Thu Oct 12 14:19:46 2023 +0200 +++ b/bmsd/ispindels.c Thu Oct 12 15:24:56 2023 +0200 @@ -90,6 +90,9 @@ msg = xstrcat(msg, (char *)",\"alarm\":"); snprintf(buf, 64, "%d", ispindel->alarm); msg = xstrcat(msg, buf); + msg = xstrcat(msg, (char *)",\"lastseen\":"); + snprintf(buf, 64, "%ld", ispindel->lastseen); + msg = xstrcat(msg, buf); msg = xstrcat(msg, (char *)"}"); ws_broadcast(msg); free(msg); @@ -233,7 +236,7 @@ time_t timestamp; FILE *fp; - syslog(LOG_NOTICE, "ispindel_set: %s %s", node, payload); + //syslog(LOG_NOTICE, "ispindel_set: %s %s", node, payload); /* * Search ispindel record in the memory array and use it if found.