Update xsns_06_dht.ino

This commit is contained in:
Adrian Scillato 2018-04-07 22:53:49 -03:00 committed by GitHub
parent b98fda123b
commit ca02cafb5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -231,6 +231,12 @@ void DhtShow(boolean json)
dsxflg++; dsxflg++;
} }
#endif // USE_DOMOTICZ #endif // USE_DOMOTICZ
#ifdef USE_KNX
KNX_Sensor(KNX_temperature, t);
KNX_Sensor(KNX_humidity, h);
#endif // USE_KNX
#ifdef USE_WEBSERVER #ifdef USE_WEBSERVER
} else { } else {
snprintf_P(mqtt_data, sizeof(mqtt_data), HTTP_SNS_TEMP, mqtt_data, Dht[i].stype, temperature, TempUnit()); snprintf_P(mqtt_data, sizeof(mqtt_data), HTTP_SNS_TEMP, mqtt_data, Dht[i].stype, temperature, TempUnit());