From b79233d6fb7195799414a183300df1370e051a73 Mon Sep 17 00:00:00 2001 From: biver Date: Sun, 16 Jan 2022 13:13:01 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87?= =?UTF-8?q?=D0=B0=D0=B5=D0=BC=20DS18B20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/API.cpp | 3 +++ 1 file changed, 3 insertions(+) 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