gpio configuration via web interface

This commit is contained in:
technyon
2023-04-07 13:10:44 +02:00
parent 29c664e3ba
commit e3237a648c
6 changed files with 264 additions and 55 deletions

View File

@@ -215,6 +215,9 @@ void setup()
nuki->initialize(firstStart);
gpio = new Gpio(preferences, nuki);
String gpioDesc;
gpio->getConfigurationText(gpioDesc, gpio->pinConfiguration());
Serial.print(gpioDesc.c_str());
// if(preferences->getBool(preference_gpio_locking_enabled))
// {
@@ -229,7 +232,7 @@ void setup()
nukiOpener->initialize();
}
webCfgServer = new WebCfgServer(nuki, nukiOpener, network, ethServer, preferences, network->networkDeviceType() == NetworkDeviceType::WiFi);
webCfgServer = new WebCfgServer(nuki, nukiOpener, network, gpio, ethServer, preferences, network->networkDeviceType() == NetworkDeviceType::WiFi);
webCfgServer->initialize();
presenceDetection = new PresenceDetection(preferences, bleScanner, network, CharBuffer::get(), CHAR_BUFFER_SIZE);