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):
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 function
def download_and_install_update_if_available(self):