mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
4mb build version
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
#include "BufferExecute.h"
|
||||
#include "items/SensorAnalogClass.h"
|
||||
#ifdef ANALOG_ENABLED
|
||||
//==============================================Модуль аналогового сенсора===========================================================================================
|
||||
//===================================================================================================================================================================
|
||||
SensorAnalogClass mySensorAnalog;
|
||||
void analogAdc() {
|
||||
mySensorAnalog.update();
|
||||
String key = mySensorAnalog.gkey();
|
||||
sCmd.addCommand(key.c_str(), analogReading);
|
||||
sensorReadingMap10sec += key + ",";
|
||||
mySensorAnalog.SensorAnalogInit();
|
||||
mySensorAnalog.clear();
|
||||
}
|
||||
|
||||
void analogReading() {
|
||||
String key = sCmd.order();
|
||||
String pin = jsonReadStr(configOptionJson, key + "_pin");
|
||||
mySensorAnalog.SensorAnalogRead(key, pin);
|
||||
}
|
||||
#endif
|
||||
//#include "BufferExecute.h"
|
||||
//#include "items/SensorAnalogClass.h"
|
||||
//#ifdef ANALOG_ENABLED
|
||||
////==============================================Модуль аналогового сенсора===========================================================================================
|
||||
////===================================================================================================================================================================
|
||||
//SensorAnalogClass mySensorAnalog;
|
||||
//void analogAdc() {
|
||||
// mySensorAnalog.update();
|
||||
// String key = mySensorAnalog.gkey();
|
||||
// sCmd.addCommand(key.c_str(), analogReading);
|
||||
// sensorReadingMap10sec += key + ",";
|
||||
// mySensorAnalog.SensorAnalogInit();
|
||||
// mySensorAnalog.clear();
|
||||
//}
|
||||
//
|
||||
//void analogReading() {
|
||||
// String key = sCmd.order();
|
||||
// String pin = jsonReadStr(configOptionJson, key + "_pin");
|
||||
// mySensorAnalog.SensorAnalogRead(key, pin);
|
||||
//}
|
||||
//#endif
|
||||
Reference in New Issue
Block a user