Popieram!Robert Błaszczak wrote: Sun Oct 12, 2025 12:25 pmKrzysiek, w changelog jest na ten temat tyle:Może warto byłoby choć dopisać, że w przykładzie WebInterface jest pokazane, jak się tego używa. A jeszcze lepiej jakby w changelogu pokazać jak tego używać. A już najrozsądniej byłoby, aby we wszystkich przykładach, w których mamy zastosowany tryb konfiguracyjny i interface webowy uzupełnić kod o obsługę przycisku CONFIG. Ja wiem, że to wymaga czasu, ale choćby krótka wzmianka, żeby sobie zaglądnąć do przykładu WebInterface już by pomogła.Code: Select all
SuplaDevice: change default device behavior in order to not start Wi-Fi soft AP by default on power on. Additionally, cfg mode will be disabled after 5 min inactivity timeout. Device will leave config mode after timeout, without restart - in case when no HTTP POST requests were received. If HTTP POST request was received, device will restart after config mode inactivity timeout. Add method setLeaveCfgModeAfterInactivityMin(int valueMin), to setup inactivity timeout (default 5 min). Value 0 -> disable timeout. Allowed range 1-255. Use: SuplaDevice.allowWorkInOfflineMode(0); SuplaDevice.setLeaveCfgModeAfterInactivityMin(0); to restore previous behavior (hovever it is not recommended). Warning: this new behavior will make devices without "cfg button" inaccessible.
A już byłoby przecudnie, jakby wszystkie przykłady z SuplaDevice uzupełnić o WebInterface i tryb CONFIG. Ciekawe, czy kiedyś się tego doczekamy![]()
Ja już sobie do wszystkich projektów wrzuciłem ten kod, który zamieścił @veeroos:
Code: Select all
SuplaDevice.allowWorkInOfflineMode(0);
SuplaDevice.setLeaveCfgModeAfterInactivityMin(0);

