mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Revert "Портируем DS18B20"
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
#include "ESPConfiguration.h"
|
||||
|
||||
std::vector<IoTSensor*> iotSensors;
|
||||
ModuleInfo getAPI(String subtype, String params);
|
||||
void* getAPI(String subtype, String params);
|
||||
|
||||
//============================================================================================
|
||||
//здесь скопируйте строку и вставьте ниже, заменив имя AnalogAdc на название вашего сенсора
|
||||
extern void* getAPI_AnalogAdc(String params);
|
||||
//============================================================================================
|
||||
|
||||
void configure(String path) {
|
||||
File file = seekFile(path);
|
||||
@@ -17,7 +22,7 @@ void configure(String path) {
|
||||
SerialPrint(F("E"), F("Config"), "json error " + subtype);
|
||||
continue;
|
||||
} else {
|
||||
myIoTSensor = (IoTSensor*)getAPI(subtype, jsonArrayElement).apiToComponent;
|
||||
myIoTSensor = (IoTSensor*)getAPI(subtype, jsonArrayElement);
|
||||
if (myIoTSensor) {
|
||||
iotSensors.push_back(myIoTSensor);
|
||||
createWidget(jsonArrayElement);
|
||||
|
||||
Reference in New Issue
Block a user