mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-02 22:58:44 +05:00
fix: use static IP at startup fixed #70
This commit is contained in:
1 parent
769daa0857
commit
5b6e23251a
1 file changed
+7
@@ -146,6 +146,13 @@ void setup() {
|
||||
strlen(networkSettings.ap.ssid) ? networkSettings.ap.ssid : nullptr,
|
||||
strlen(networkSettings.ap.password) ? networkSettings.ap.password : nullptr,
|
||||
networkSettings.ap.channel
|
||||
)
|
||||
->setUseDhcp(networkSettings.useDhcp)
|
||||
->setStaticConfig(
|
||||
networkSettings.staticConfig.ip,
|
||||
networkSettings.staticConfig.gateway,
|
||||
networkSettings.staticConfig.subnet,
|
||||
networkSettings.staticConfig.dns
|
||||
);
|
||||
|
||||
// tasks
|
||||
|
||||
Reference in new issue
Block a user