Pico W: Initial Wi-Fi support (#2980)

* Pico W: Initial WiFi support: connects, but freezes after a while

* Update arduino-pico core to fix hang with Wi-Fi

* Add `picow` to workflow since it's different from `pico` now
This commit is contained in:
GUVWAF
2023-12-02 21:47:52 +01:00
committed by GitHub
parent 9e90b4af02
commit 6ff61b3e04
21 changed files with 154 additions and 119 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include "concurrency/Periodic.h"
#include "configuration.h"
#include <Arduino.h>
#include <functional>
#if defined(HAS_WIFI) && !defined(ARCH_PORTDUINO)
#include <WiFi.h>
#endif
extern bool needReconnect;
extern concurrency::Periodic *wifiReconnect;
/// @return true if wifi is now in use
bool initWifi();
void deinitWifi();
bool isWifiAvailable();
uint8_t getWifiDisconnectReason();