diff --git a/src/modules/API.cpp b/src/modules/API.cpp index 8d077ad4..be4fe2d4 100644 --- a/src/modules/API.cpp +++ b/src/modules/API.cpp @@ -3,6 +3,7 @@ //============================================================================================ //здесь скопируйте строку и вставьте ниже, заменив имя AnalogAdc на название вашего сенсора void* getAPI_AnalogAdc(String subtype, String params); +void* getAPI_ds18b20(String subtype, String params); //============================================================================================ void* getAPI(String subtype, String params) { @@ -12,5 +13,7 @@ void* getAPI(String subtype, String params) { if ((tmpAPI = getAPI_AnalogAdc(subtype, params)) != nullptr) return tmpAPI; //================================================================================================================ + if ((tmpAPI = getAPI_ds18b20(subtype, params)) != nullptr) return tmpAPI; + return nullptr; } \ No newline at end of file