From 6d1d1ac50de4a8548b4bb8110c837da809ee4e1b Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Wed, 2 Sep 2020 14:49:38 -0500 Subject: [PATCH] [BT] Remove voltage class (#750) and correct wrong comment --- main/ZgatewayBT.ino | 4 ++-- main/config_BT.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/ZgatewayBT.ino b/main/ZgatewayBT.ino index 4d0c4a8..a955e66 100644 --- a/main/ZgatewayBT.ino +++ b/main/ZgatewayBT.ino @@ -357,7 +357,7 @@ void LYWSD03MMCDiscovery(char* mac) { Log.trace(F("LYWSD03MMCDiscovery" CR)); char* LYWSD03MMCsensor[LYWSD03MMCparametersCount][8] = { {"sensor", "LYWSD03MMC-batt", mac, "battery", jsonBatt, "", "", "%"}, - {"sensor", "LYWSD03MMC-volt", mac, "voltage", jsonVolt, "", "", "V"}, + {"sensor", "LYWSD03MMC-volt", mac, "", jsonVolt, "", "", "V"}, {"sensor", "LYWSD03MMC-tempc", mac, "temperature", jsonTempc, "", "", "C"}, {"sensor", "LYWSD03MMC-tempf", mac, "temperature", jsonTempf, "", "", "F"}, {"sensor", "LYWSD03MMC-hum", mac, "humidity", jsonHum, "", "", "%"} @@ -372,7 +372,7 @@ void MHO_C401Discovery(char* mac) { Log.trace(F("MHO_C401Discovery" CR)); char* MHO_C401sensor[MHO_C401parametersCount][8] = { {"sensor", "MHO_C401-batt", mac, "battery", jsonBatt, "", "", "%"}, - {"sensor", "MHO_C401-volt", mac, "voltage", jsonVolt, "", "", "V"}, + {"sensor", "MHO_C401-volt", mac, "", jsonVolt, "", "", "V"}, {"sensor", "MHO_C401-tempc", mac, "temperature", jsonTempc, "", "", "C"}, {"sensor", "MHO_C401-tempf", mac, "temperature", jsonTempf, "", "", "F"}, {"sensor", "MHO_C401-hum", mac, "humidity", jsonHum, "", "", "%"} diff --git a/main/config_BT.h b/main/config_BT.h index 46444ce..daf45de 100644 --- a/main/config_BT.h +++ b/main/config_BT.h @@ -45,7 +45,7 @@ extern void MQTTtoBT(char* topicOri, JsonObject& RFdata); # define TimeBtwRead 55555 //define default time between 2 scans #endif #ifndef PublishOnlySensors -# define PublishOnlySensors false //true if we publish all BLE devices discovered or false only the identified sensors (like temperature sensors) +# define PublishOnlySensors false //false if we publish all BLE devices discovered or true only the identified sensors (like temperature sensors) #endif #define HMSerialSpeed 9600 // Communication speed with the HM module, softwareserial doesn't support 115200