TinyWifiDongle 0.1.0
Header-only USB WiFi dongle for Arduino
Loading...
Searching...
No Matches
TinyWifiDongle Class Reference

Shares the microcontroller's WiFi connection with a USB host. More...

#include <TinyWifiDongle.h>

Collaboration diagram for TinyWifiDongle:

Public Member Functions

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.
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.

Protected Attributes

TinyWifiDonglePort port_
 The port of the MCU in use; does all the work.

Detailed Description

Shares the microcontroller's WiFi connection with a USB host.

Thin facade over the port of the MCU in use (TinyWifiDonglePort): the microcontroller joins a WiFi network and appears to the host as a USB network adapter that is bridged to the WiFi network.

void setup() { dongle.begin("ssid", "password"); }
void loop() {}
Shares the microcontroller's WiFi connection with a USB host.
bool begin(const char *ssid, const char *password=nullptr)
Join ssid and expose the connection over USB.
See also
TinyWifiDongleConfig

Definition at line 48 of file TinyWifiDongle.h.

Member Function Documentation

◆ begin() [1/2]

bool TinyWifiDongle::begin ( const char * ssid,
const char * password = nullptr )
inline

Join ssid and expose the connection over USB.

Definition at line 51 of file TinyWifiDongle.h.

◆ begin() [2/2]

bool TinyWifiDongle::begin ( const TinyWifiDongleConfig & cfg)
inline

Start the dongle with full control over all settings.

Definition at line 59 of file TinyWifiDongle.h.

◆ isUsbReady()

bool TinyWifiDongle::isUsbReady ( )
inline

True once the USB host has enumerated and configured the adapter.

Definition at line 62 of file TinyWifiDongle.h.

◆ isWifiConnected()

bool TinyWifiDongle::isWifiConnected ( )
inline

True when the MCU is associated with the WiFi access point.

Definition at line 65 of file TinyWifiDongle.h.

Member Data Documentation

◆ port_

TinyWifiDonglePort TinyWifiDongle::port_
protected

The port of the MCU in use; does all the work.

Definition at line 69 of file TinyWifiDongle.h.


The documentation for this class was generated from the following file: