WildernessLabs / Meadow_Issues

Public repo for bugs and issues with Meadow
15 stars 0 forks source link

F7 WiFi network API does not disconnect properly #641

Open ctacke opened 2 months ago

ctacke commented 2 months ago

I have an app that tries to disconnect the WiFi network on F7 CCM hardware (Clima, specifically). I have code that is simple:

if (networkAdapter is IWiFiNetworkAdapter wifi)
{
    Resolver.Log.Info("Disconnecting network...");
    await wifi.Disconnect(true);
    Resolver.Log.Info("Network disconnected");
}

I see the first log output:

Disconnecting network...

But the call to Disconnect() only ever throws a TimeoutException

NevynUK commented 4 weeks ago

Three components to this:

alexischr commented 2 weeks ago

We are seeing issues with many of our network events succesfully being surface to Meadow.Core, and getting lost somewhere in Source/implementations/f7/Meadow.F7/Devices/Esp32Coprocessor/Esp32WiFiAdapter.cs's InvokeEvent.