mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
24 lines
1.5 KiB
C++
24 lines
1.5 KiB
C++
#include "ESPConfiguration.h"
|
||
|
||
//============================================================================================
|
||
//здесь скопируйте строку и вставьте ниже, заменив имя AnalogAdc на название вашего сенсора
|
||
void* getAPI_AnalogAdc(String subtype, String params);
|
||
void* getAPI_Ds18b20(String subtype, String params);
|
||
void* getAPI_Sht20(String subtype, String params);
|
||
void* getAPI_Dht1122(String subtype, String params);
|
||
void* getAPI_Bmp280(String subtype, String params);
|
||
//============================================================================================
|
||
|
||
void* getAPI(String subtype, String params) {
|
||
void* tmpAPI;
|
||
//===============================================================================================================
|
||
//здесь нужно скопировать строку еще раз и вставить ее ниже, переименовав AnalogAdc на название вашего сенсора
|
||
if ((tmpAPI = getAPI_AnalogAdc(subtype, params)) != nullptr) return tmpAPI;
|
||
if ((tmpAPI = getAPI_Ds18b20(subtype, params)) != nullptr) return tmpAPI;
|
||
if ((tmpAPI = getAPI_Sht20(subtype, params)) != nullptr) return tmpAPI;
|
||
if ((tmpAPI = getAPI_Dht1122(subtype, params)) != nullptr) return tmpAPI;
|
||
if ((tmpAPI = getAPI_Bmp280(subtype, params)) != nullptr) return tmpAPI;
|
||
//================================================================================================================
|
||
|
||
return nullptr;
|
||
} |