mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Добавляем системный класс прослойку для доступа к GPIO при помощи плат расширения портов
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#include "ESPConfiguration.h"
|
||||
#include "classes/IoTGpio.h"
|
||||
|
||||
extern IoTGpio IoTgpio;
|
||||
|
||||
std::vector<IoTItem*> IoTItems;
|
||||
void* getAPI(String subtype, String params);
|
||||
@@ -19,6 +22,8 @@ void configure(String path) {
|
||||
} else {
|
||||
myIoTItem = (IoTItem*)getAPI(subtype, jsonArrayElement);
|
||||
if (myIoTItem) {
|
||||
IoTGpio* tmp = myIoTItem->getGpioDriver();
|
||||
if (tmp) IoTgpio.regDriver(tmp);
|
||||
IoTItems.push_back(myIoTItem);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user