This commit is contained in:
Florian committed 2018-06-30 15:24:57 +02:00
commit 25312d354b
1 file changed
+4 -1
+4 -1
View File
@@ -353,7 +353,10 @@ boolean process_data(int offset, char * rest_data, char * mac_adress){
char val[12];
String mactopic(mac_adress);
mactopic = subjectBTtoMQTT + mactopic;
// Mi flora provides tem(perature), (earth) moi(sture), fer(tility) and lux (illuminance)
// Mi Jia provides tem(perature) and hum(idity)
// following the value of digit 47 we determine the type of data we get from the sensor
switch (rest_data[47 + offset]) {
case '9' :