Expand description
ATWINC1500 Wifi module library
NOTE: This very much Work In Progress
The main entry point is WincClient.
The following traits are implemented:
- embedded_nal::TcpClientStack and embedded_nal::TcpFullStack
- embedded_nal::UdpClientStack and embedded_nal::UdpFullStack
- embedded_nal::Dns
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§
- Access
Point - Structure for Access Point Configuration.
- Async
Client - Connection
Info - Connected network information
- Firmware
Info - Information about the firmware version of the Wifi module
- Handle
- Opaque handle to a socket. Returned by socket APIs
- Ping
Result - Ping operation results
- Scan
Result - Result of a scan for access points
- Winc
Client - Client for the WincWifi chip.
Enums§
- Auth
Type - Type of authentication used by an access point
- Comm
Error - Low-level chip communication errors
- Credentials
- Wi-Fi Security Credentials.
- Stack
Error - Stack errors
- StrError
- Wifi
Channel
Traits§
- Transfer
- Trait for transferring data to/from the WincWifi chip
Type Aliases§
- Host
Name - Device Domain name.
- S8Password
- S802_1X Password
- S8Username
- S802_1X Username
- Ssid
- Wifi SSID
- WpaKey
- WPA-PSK key