Tue, 14 Feb 2023 11:29:01 +0100
Version 0.3.43 bmsd if there is no ssid received from a node message then send '' to the mon_nodes table in the database instead of (null).
bmsd/mysql.c | file | annotate | diff | comparison | revisions | |
configure | file | annotate | diff | comparison | revisions | |
configure.ac | file | annotate | diff | comparison | revisions |
--- a/bmsd/mysql.c Sat Feb 11 15:53:16 2023 +0100 +++ b/bmsd/mysql.c Tue Feb 14 11:29:01 2023 +0100 @@ -506,7 +506,7 @@ node->uuid, node->node, node->online ?1:0, node->group_id, node->hardwaremake, node->hardwaremodel, node->os, node->os_version, node->firmware, first, last, node->temperature, node->humidity, node->barometer, node->gps_latitude, node->gps_longitude, node->gps_altitude, - node->net_address, node->net_ifname, node->net_rssi, node->interval, node->net_ssid); + node->net_address, node->net_ifname, node->net_rssi, node->interval, (node->net_ssid) ? node->net_ssid:""); if (bms_mysql_query(query) == 0) { syslog(LOG_NOTICE, "MySQL: insert new node %s", node->node); @@ -532,7 +532,7 @@ "net_address='%s', net_ifname='%s', net_rssi='%d', up_interval='%d', net_ssid='%s' WHERE uuid='%s'", node->online ? 1:0, node->hardwaremake, node->hardwaremodel, node->os, node->os_version, node->firmware, last, node->temperature, node->humidity, node->barometer, node->gps_latitude, node->gps_longitude, node->gps_altitude, - node->net_address, node->net_ifname, node->net_rssi, node->interval, node->net_ssid, node->uuid); + node->net_address, node->net_ifname, node->net_rssi, node->interval, (node->net_ssid) ? node->net_ssid:"", node->uuid); bms_mysql_query(query); free(query);
--- a/configure Sat Feb 11 15:53:16 2023 +0100 +++ b/configure Tue Feb 14 11:29:01 2023 +0100 @@ -2031,7 +2031,7 @@ PACKAGE="bms" -VERSION="0.3.42" +VERSION="0.3.43" COPYRIGHT="Copyright (C) 2016-2023 Michiel Broek, All Rights Reserved" CYEARS="2016-2023"
--- a/configure.ac Sat Feb 11 15:53:16 2023 +0100 +++ b/configure.ac Tue Feb 14 11:29:01 2023 +0100 @@ -8,7 +8,7 @@ dnl General settings dnl After changeing the version number, run autoconf! PACKAGE="bms" -VERSION="0.3.42" +VERSION="0.3.43" COPYRIGHT="Copyright (C) 2016-2023 Michiel Broek, All Rights Reserved" CYEARS="2016-2023" AC_SUBST(PACKAGE)