ZgatewayBT.ino: Small documentation for the different sensor signals (#222)

This PR add a small documentation to make people aware which sensor unit is going to send what kind of data.
This commit is contained in:
Torwag authored and Florian committed 2018-06-30 15:17:16 +02:00
1 parent 1dd68ab078
commit 7905910981
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' :