2022-01-16 12:17:53 +05:00
|
|
|
#include "ESPConfiguration.h"
|
|
|
|
|
|
2022-10-31 19:33:01 +03:00
|
|
|
void* getAPI_Cron(String subtype, String params);
|
2022-12-07 22:30:38 +01:00
|
|
|
void* getAPI_Loging(String subtype, String params);
|
|
|
|
|
void* getAPI_LogingDaily(String subtype, String params);
|
2024-01-20 22:32:31 +01:00
|
|
|
void* getAPI_IoTMath(String subtype, String params);
|
2023-10-23 01:09:18 +02:00
|
|
|
void* getAPI_owmWeather(String subtype, String params);
|
2022-08-11 23:20:16 +03:00
|
|
|
void* getAPI_Timer(String subtype, String params);
|
|
|
|
|
void* getAPI_Variable(String subtype, String params);
|
2022-08-12 01:08:24 +03:00
|
|
|
void* getAPI_VButton(String subtype, String params);
|
2022-12-07 22:30:38 +01:00
|
|
|
void* getAPI_AnalogAdc(String subtype, String params);
|
2024-05-14 22:01:07 +02:00
|
|
|
void* getAPI_BL0937(String subtype, String params);
|
2022-12-07 22:30:38 +01:00
|
|
|
void* getAPI_UART(String subtype, String params);
|
2024-01-20 22:32:31 +01:00
|
|
|
void* getAPI_AnalogBtn(String subtype, String params);
|
2022-08-11 23:20:16 +03:00
|
|
|
void* getAPI_ButtonIn(String subtype, String params);
|
|
|
|
|
void* getAPI_ButtonOut(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-08-13 12:18:58 +02:00
|
|
|
void* tmpAPI;
|
2022-10-31 19:33:01 +03:00
|
|
|
if ((tmpAPI = getAPI_Cron(subtype, params)) != nullptr) return tmpAPI;
|
2022-12-07 22:30:38 +01:00
|
|
|
if ((tmpAPI = getAPI_Loging(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_LogingDaily(subtype, params)) != nullptr) return tmpAPI;
|
2024-01-20 22:32:31 +01:00
|
|
|
if ((tmpAPI = getAPI_IoTMath(subtype, params)) != nullptr) return tmpAPI;
|
2023-10-23 01:09:18 +02:00
|
|
|
if ((tmpAPI = getAPI_owmWeather(subtype, params)) != nullptr) return tmpAPI;
|
2022-08-13 12:18:58 +02:00
|
|
|
if ((tmpAPI = getAPI_Timer(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Variable(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_VButton(subtype, params)) != nullptr) return tmpAPI;
|
2022-12-07 22:30:38 +01:00
|
|
|
if ((tmpAPI = getAPI_AnalogAdc(subtype, params)) != nullptr) return tmpAPI;
|
2024-05-14 22:01:07 +02:00
|
|
|
if ((tmpAPI = getAPI_BL0937(subtype, params)) != nullptr) return tmpAPI;
|
2022-12-07 22:30:38 +01:00
|
|
|
if ((tmpAPI = getAPI_UART(subtype, params)) != nullptr) return tmpAPI;
|
2024-01-20 22:32:31 +01:00
|
|
|
if ((tmpAPI = getAPI_AnalogBtn(subtype, params)) != nullptr) return tmpAPI;
|
2022-08-13 12:18:58 +02:00
|
|
|
if ((tmpAPI = getAPI_ButtonIn(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_ButtonOut(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
return nullptr;
|
2022-01-16 12:17:53 +05:00
|
|
|
}
|