mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
//#include "Consts.h"
|
|
//#ifdef SensorDhtEnabled
|
|
//#include "items/SensorDhtClass.h"
|
|
//#include "BufferExecute.h"
|
|
////=========================================DHT Sensor==================================================================
|
|
////dht-temp;id;anydata;Сенсоры;Температура;order;pin;type[dht11];c[1]
|
|
////dht-hum;id;anydata;Сенсоры;Влажность;order;pin;type[dht11];c[1]
|
|
////=========================================================================================================================================
|
|
//SensorDhtClass mySensorDht;
|
|
//void dhtTemp() {
|
|
// mySensorDht.update();
|
|
// String key = mySensorDht.gkey();
|
|
// sCmd.addCommand(key.c_str(), dhtReadingTemp);
|
|
// mySensorDht.SensorDhtInit();
|
|
// mySensorDht.clear();
|
|
//}
|
|
//void dhtReadingTemp() {
|
|
// String key = sCmd.order();
|
|
// mySensorDht.SensorDhtReadTemp(key);
|
|
//}
|
|
//
|
|
//
|
|
//
|
|
//void dhtHum() {
|
|
// mySensorDht.update();
|
|
// String key = mySensorDht.gkey();
|
|
// sCmd.addCommand(key.c_str(), dhtReadingHum);
|
|
// mySensorDht.SensorDhtInit();
|
|
// mySensorDht.clear();
|
|
//}
|
|
//void dhtReadingHum() {
|
|
// String key = sCmd.order();
|
|
// mySensorDht.SensorDhtReadHum(key);
|
|
//}
|
|
//#endif
|