kevinmcaleer / ota

68 stars 9 forks source link

WIFI disconnect #10

Open blackshoals opened 5 months ago

blackshoals commented 5 months ago

I found in my testing of using OTA code to update then switching to ESP-NOW the wifi connection was not releasing with the result that ESP-NOW messages stalled. I added:

# Disconnect from WiFi sta_if = network.WLAN(network.STA_IF) sta_if.active(False)

at the end of the functiondef download_and_install_update_if_available(self):