2022-01-16 12:17:53 +05:00
|
|
|
#include "ESPConfiguration.h"
|
|
|
|
|
|
2022-08-02 23:32:11 +03:00
|
|
|
void* getAPI_Lcd2004(String subtype, String params);
|
2022-05-19 08:20:45 +03:00
|
|
|
void* getAPI_ButtonIn(String subtype, String params);
|
|
|
|
|
void* getAPI_ButtonOut(String subtype, String params);
|
2022-05-30 23:18:42 +03:00
|
|
|
void* getAPI_IoTServo(String subtype, String params);
|
2022-04-26 12:09:56 +03:00
|
|
|
void* getAPI_Mp3(String subtype, String params);
|
2022-08-02 23:32:11 +03:00
|
|
|
void* getAPI_Telegram(String subtype, String params);
|
2022-05-19 08:20:45 +03:00
|
|
|
void* getAPI_Timer(String subtype, String params);
|
2022-08-02 23:32:11 +03:00
|
|
|
void* getAPI_IarduinoRTC(String subtype, String params);
|
|
|
|
|
void* getAPI_Mcp23017(String subtype, String params);
|
|
|
|
|
void* getAPI_SysExt(String subtype, String params);
|
|
|
|
|
void* getAPI_Variable(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;
|
2022-08-02 23:32:11 +03:00
|
|
|
if ((tmpAPI = getAPI_Lcd2004(subtype, params)) != nullptr) return tmpAPI;
|
2022-05-19 08:20:45 +03:00
|
|
|
if ((tmpAPI = getAPI_ButtonIn(subtype, params)) != nullptr) return tmpAPI;
|
|
|
|
|
if ((tmpAPI = getAPI_ButtonOut(subtype, params)) != nullptr) return tmpAPI;
|
2022-05-30 23:18:42 +03:00
|
|
|
if ((tmpAPI = getAPI_IoTServo(subtype, params)) != nullptr) return tmpAPI;
|
2022-04-26 12:09:56 +03:00
|
|
|
if ((tmpAPI = getAPI_Mp3(subtype, params)) != nullptr) return tmpAPI;
|
2022-08-02 23:32:11 +03:00
|
|
|
if ((tmpAPI = getAPI_Telegram(subtype, params)) != nullptr) return tmpAPI;
|
2022-05-19 08:20:45 +03:00
|
|
|
if ((tmpAPI = getAPI_Timer(subtype, params)) != nullptr) return tmpAPI;
|
2022-08-02 23:32:11 +03:00
|
|
|
if ((tmpAPI = getAPI_IarduinoRTC(subtype, params)) != nullptr) return 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;
|
|
|
|
|
return nullptr;
|
2022-01-16 12:17:53 +05:00
|
|
|
}
|