28#elif defined(ARDUINO_ARCH_RP2040)
31#error "TinyWifiDongle: unsupported architecture (supported: ESP32-S2/S3/P4, Raspberry Pi Pico W / Pico 2 W)"
51 bool begin(
const char* ssid,
const char* password =
nullptr) {
twd::Esp32Dongle TinyWifiDonglePort
Shares the microcontroller's WiFi connection with a USB host.
bool isUsbReady()
True once the USB host has enumerated and configured the adapter.
bool isWifiConnected()
True when the MCU is associated with the WiFi access point.
TinyWifiDonglePort port_
The port of the MCU in use; does all the work.
bool begin(const char *ssid, const char *password=nullptr)
Join ssid and expose the connection over USB.
bool begin(const TinyWifiDongleConfig &cfg)
Start the dongle with full control over all settings.
Settings of the dongle; every field has a usable default except the SSID.
const char * password
Password of the network (nullptr for an open network).
const char * ssid
WiFi network the MCU joins (the "uplink").