1 parent
5810420d93
commit
6d1d1ac50d
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -357,7 +357,7 @@ void LYWSD03MMCDiscovery(char* mac) {
|
|||||||
Log.trace(F("LYWSD03MMCDiscovery" CR));
|
Log.trace(F("LYWSD03MMCDiscovery" CR));
|
||||||
char* LYWSD03MMCsensor[LYWSD03MMCparametersCount][8] = {
|
char* LYWSD03MMCsensor[LYWSD03MMCparametersCount][8] = {
|
||||||
{"sensor", "LYWSD03MMC-batt", mac, "battery", jsonBatt, "", "", "%"},
|
{"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-tempc", mac, "temperature", jsonTempc, "", "", "C"},
|
||||||
{"sensor", "LYWSD03MMC-tempf", mac, "temperature", jsonTempf, "", "", "F"},
|
{"sensor", "LYWSD03MMC-tempf", mac, "temperature", jsonTempf, "", "", "F"},
|
||||||
{"sensor", "LYWSD03MMC-hum", mac, "humidity", jsonHum, "", "", "%"}
|
{"sensor", "LYWSD03MMC-hum", mac, "humidity", jsonHum, "", "", "%"}
|
||||||
@@ -372,7 +372,7 @@ void MHO_C401Discovery(char* mac) {
|
|||||||
Log.trace(F("MHO_C401Discovery" CR));
|
Log.trace(F("MHO_C401Discovery" CR));
|
||||||
char* MHO_C401sensor[MHO_C401parametersCount][8] = {
|
char* MHO_C401sensor[MHO_C401parametersCount][8] = {
|
||||||
{"sensor", "MHO_C401-batt", mac, "battery", jsonBatt, "", "", "%"},
|
{"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-tempc", mac, "temperature", jsonTempc, "", "", "C"},
|
||||||
{"sensor", "MHO_C401-tempf", mac, "temperature", jsonTempf, "", "", "F"},
|
{"sensor", "MHO_C401-tempf", mac, "temperature", jsonTempf, "", "", "F"},
|
||||||
{"sensor", "MHO_C401-hum", mac, "humidity", jsonHum, "", "", "%"}
|
{"sensor", "MHO_C401-hum", mac, "humidity", jsonHum, "", "", "%"}
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ extern void MQTTtoBT(char* topicOri, JsonObject& RFdata);
|
|||||||
# define TimeBtwRead 55555 //define default time between 2 scans
|
# define TimeBtwRead 55555 //define default time between 2 scans
|
||||||
#endif
|
#endif
|
||||||
#ifndef PublishOnlySensors
|
#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
|
#endif
|
||||||
|
|
||||||
#define HMSerialSpeed 9600 // Communication speed with the HM module, softwareserial doesn't support 115200
|
#define HMSerialSpeed 9600 // Communication speed with the HM module, softwareserial doesn't support 115200
|
||||||
|
|||||||
Reference in new issue
Block a user