Портируем Bme280

This commit is contained in:
2022-02-03 18:32:31 +03:00
parent 0540ea5b04
commit 34252302a9
4 changed files with 135 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ void* getAPI_Ds18b20(String subtype, String params);
void* getAPI_Sht20(String subtype, String params);
void* getAPI_Dht1122(String subtype, String params);
void* getAPI_Bmp280(String subtype, String params);
void* getAPI_Bme280(String subtype, String params);
//============================================================================================
void* getAPI(String subtype, String params) {
@@ -18,6 +19,7 @@ void* getAPI(String subtype, String params) {
if ((tmpAPI = getAPI_Sht20(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Dht1122(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Bmp280(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Bme280(subtype, params)) != nullptr) return tmpAPI;
//================================================================================================================
return nullptr;