Blaž Kristan

Results 1367 comments of Blaž Kristan

For JSON API I'm thinking something in the lines of: ```c++ if (!wifi[F("on")].isNull()) { bool sta = getBoolVal(wifi[F("on")], wifiEnabled); if (Network.isConnected() && !sta) WiFi.disconnect(); if (sta) forceReconnect = true; wifiEnabled...

Create two presets: `{"wifi":{"on":false}}` and `{"wifi":{"on":true}}` or a single `{"wifi":{"on":"t"}}` and assign them/it to buttons.

Does it need to release IP? It will get a new one on reconnect if needed. If that interferes with your processing use `WiFi.status()` and check if it is either...

Async behaviour is intended. It should be implemented everywhere.

Let me revive tis issue (in regards to #4586). I was looking at the code for mDNS and hostname and did find it a bit odd. https://github.com/wled/WLED/blob/a87b562bc27d4caa636233c9bbc35b72be123ae8/wled00/wled.cpp#L466 https://github.com/wled/WLED/blob/a87b562bc27d4caa636233c9bbc35b72be123ae8/wled00/wled.cpp#L658-L670 https://github.com/wled/WLED/blob/a87b562bc27d4caa636233c9bbc35b72be123ae8/wled00/cfg.cpp#L59-L61 I...

Like so? ```c++ // prepare a unique hostname based on the last 6 digits of the MAC address // if no mDNS name or serverDescription is set, otherwise use cmDNS...

`cmDNS` would still need cleaning which is not done currently.

@willmmiles could you take a look what's causing it? I peeked into ELF and can see some AsyncMqttClient references but can't make anything useful from it.

FYI upstream library marvinroger/async-mqtt-client has not been updated in 3 years.

I've replaced local copy (removed) with `marvinroger/AsyncMqttClient @ 0.9.0` in `platformio.ini` without any ill consequences. I don't think there was a huge difference though.