2022-01-16 12:17:53 +05:00
|
|
|
#include "ESPConfiguration.h"
|
|
|
|
|
|
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-08-04 00:12:38 +03:00
|
|
|
void* getAPI_Ds18b20(String subtype, String params);
|
2022-08-09 13:11:13 +03:00
|
|
|
void* getAPI_RCswitch(String subtype, String params);
|
2022-08-04 00:12:38 +03:00
|
|
|
void* getAPI_Sonar(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);
|
|
|
|
|
void* getAPI_Mcp23017(String subtype, String params);
|
2022-10-05 21:07:49 +03:00
|
|
|
void* getAPI_Pcf8574(String subtype, String params);
|
2022-09-26 21:56:54 +02:00
|
|
|
void* getAPI_Pwm8266(String subtype, String params);
|
2022-09-05 16:30:59 +03:00
|
|
|
void* getAPI_TelegramLT(String subtype, String params);
|
2022-08-11 23:20:16 +03:00
|
|
|
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-08-13 12:18:58 +02:00
|
|
|
void* tmpAPI;
|
|
|
|
|
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;
|
|
|
|
|
if ((tmpAPI = getAPI_Ds18b20(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_RCswitch(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Sonar(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_ButtonIn(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_ButtonOut(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_Mcp23017(subtype, params)) != nullptr) return tmpAPI;
|
2022-10-05 21:07:49 +03:00
|
|
|
if ((tmpAPI = getAPI_Pcf8574(subtype, params)) != nullptr) return tmpAPI;
|
2022-09-26 21:56:54 +02:00
|
|
|
if ((tmpAPI = getAPI_Pwm8266(subtype, params)) != nullptr) return tmpAPI;
|
2022-09-05 16:30:59 +03:00
|
|
|
if ((tmpAPI = getAPI_TelegramLT(subtype, params)) != nullptr) return tmpAPI;
|
2022-08-13 12:18:58 +02:00
|
|
|
if ((tmpAPI = getAPI_Lcd2004(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
return nullptr;
|
2022-01-16 12:17:53 +05:00
|
|
|
}
|