2022-01-16 12:17:53 +05:00
|
|
|
#include "ESPConfiguration.h"
|
|
|
|
|
|
2022-03-07 21:53:13 +03:00
|
|
|
void* getAPI_Mcp23017(String subtype, String params);
|
|
|
|
|
void* getAPI_SysExt(String subtype, String params);
|
|
|
|
|
void* getAPI_Variable(String subtype, String params);
|
2022-03-08 13:12:08 +03:00
|
|
|
void* getAPI_ButtonIn(String subtype, String params);
|
2022-03-07 21:53:13 +03:00
|
|
|
void* getAPI_ButtonOut(String subtype, String params);
|
|
|
|
|
void* getAPI_Ads1115(String subtype, String params);
|
|
|
|
|
void* getAPI_Aht20(String subtype, String params);
|
2022-01-16 13:31:05 +01:00
|
|
|
void* getAPI_AnalogAdc(String subtype, String params);
|
2022-02-03 18:32:31 +03:00
|
|
|
void* getAPI_Bme280(String subtype, String params);
|
2022-03-07 21:53:13 +03:00
|
|
|
void* getAPI_Bmp280(String subtype, String params);
|
|
|
|
|
void* getAPI_Dht1122(String subtype, String params);
|
|
|
|
|
void* getAPI_Ds18b20(String subtype, String params);
|
2022-02-17 18:25:50 +03:00
|
|
|
void* getAPI_GY21(String subtype, String params);
|
2022-03-07 21:53:13 +03:00
|
|
|
void* getAPI_Hdc1080(String subtype, String params);
|
2022-03-15 15:59:26 +01:00
|
|
|
void* getAPI_Max6675(String subtype, String params);
|
2022-03-07 11:54:25 +03:00
|
|
|
void* getAPI_Mhz19(String subtype, String params);
|
2022-03-07 21:53:13 +03:00
|
|
|
void* getAPI_Sds011(String subtype, String params);
|
|
|
|
|
void* getAPI_Sht20(String subtype, String params);
|
|
|
|
|
void* getAPI_Lcd2004(String subtype, String params);
|
2022-01-16 12:17:53 +05:00
|
|
|
|
2022-01-16 13:31:05 +01:00
|
|
|
void* getAPI(String subtype, String params) {
|
2022-03-07 21:53:13 +03:00
|
|
|
void* tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Mcp23017(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_SysExt(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Variable(subtype, params)) != nullptr) return tmpAPI;
|
2022-03-08 13:12:08 +03:00
|
|
|
if ((tmpAPI = getAPI_ButtonIn(subtype, params)) != nullptr) return tmpAPI;
|
2022-03-07 21:53:13 +03:00
|
|
|
if ((tmpAPI = getAPI_ButtonOut(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Ads1115(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Aht20(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_AnalogAdc(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Bme280(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Bmp280(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Dht1122(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Ds18b20(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_GY21(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Hdc1080(subtype, params)) != nullptr) return tmpAPI;
|
2022-03-15 15:59:26 +01:00
|
|
|
if ((tmpAPI = getAPI_Max6675(subtype, params)) != nullptr) return tmpAPI;
|
2022-03-07 21:53:13 +03:00
|
|
|
if ((tmpAPI = getAPI_Mhz19(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Sds011(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Sht20(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Lcd2004(subtype, params)) != nullptr) return tmpAPI;return nullptr;
|
2022-01-16 12:17:53 +05:00
|
|
|
}
|