diff -r 48f8f3fce7c0 -r 0bb48333d133 bmsd/co2meters.c --- a/bmsd/co2meters.c Mon May 18 11:00:59 2020 +0200 +++ b/bmsd/co2meters.c Tue May 19 13:50:14 2020 +0200 @@ -52,14 +52,22 @@ msg = xstrcat(msg, co2meter->online ? (char *)"1":(char *)"0"); msg = xstrcat(msg, (char *)",\"mode\":\""); msg = xstrcat(msg, co2meter->mode); + msg = xstrcat(msg, (char *)"\",\"beeruuid\":\""); + msg = xstrcat(msg, co2meter->beeruuid); msg = xstrcat(msg, (char *)"\",\"beercode\":\""); msg = xstrcat(msg, co2meter->beercode); msg = xstrcat(msg, (char *)"\",\"beername\":\""); msg = xstrcat(msg, co2meter->beername); + msg = xstrcat(msg, (char *)"\",\"temperature_state\":\""); + msg = xstrcat(msg, co2meter->temperature_state); + msg = xstrcat(msg, (char *)"\",\"temperature_address\":\""); + msg = xstrcat(msg, co2meter->temperature_address); msg = xstrcat(msg, (char *)"\",\"temperature\":"); snprintf(buf, 64, "%.3f", co2meter->temperature); msg = xstrcat(msg, buf); - msg = xstrcat(msg, (char *)",\"pressure_channel\":"); + msg = xstrcat(msg, (char *)",\"pressure_state\":\""); + msg = xstrcat(msg, co2meter->pressure_state); + msg = xstrcat(msg, (char *)"\",\"pressure_channel\":"); snprintf(buf, 64, "%d", co2meter->pressure_channel); msg = xstrcat(msg, buf); msg = xstrcat(msg, (char *)",\"pressure_voltage\":"); @@ -78,7 +86,6 @@ ws_broadcast(msg); free(msg); msg = NULL; - }