Crate wincwifi

Source
Expand description

ATWINC1500 Wifi module library

NOTE: This very much Work In Progress

The main entry point is WincClient.

The following traits are implemented:

Examples are available for Adafruit Feather M0 WiFi board.

The low-lever library is in the internal manager module, it’s the part that wraps the HIF protocol and the chip registers.

Connecting to AP, getting an IP, DNS lookups etc are implemented.

Basic usage:

// spi: something that implements the protocol transfer
let mut client = WincClient::new(spi);
nb::block!(client.start_wifi_module());
nb::block!(client.connect_to_ap("ssid", "password", false));
nb::block!(client.get_host_by_name("google.com", AddrType::IPv4));
loop {
    client.heartbeat(); // periodically poll the chip
}

Code reference for this implementation is the Arduino/Atmel Wifi101 library

Structs§

AccessPoint
Structure for Access Point Configuration.
AsyncClient
ConnectionInfo
Connected network information
FirmwareInfo
Information about the firmware version of the Wifi module
Handle
Opaque handle to a socket. Returned by socket APIs
PingResult
Ping operation results
ScanResult
Result of a scan for access points
WincClient
Client for the WincWifi chip.

Enums§

AuthType
Type of authentication used by an access point
CommError
Low-level chip communication errors
Credentials
Wi-Fi Security Credentials.
StackError
Stack errors
StrError
WifiChannel

Traits§

Transfer
Trait for transferring data to/from the WincWifi chip

Type Aliases§

HostName
Device Domain name.
S8Password
S802_1X Password
S8Username
S802_1X Username
Ssid
Wifi SSID
WpaKey
WPA-PSK key