23#ifndef WIFI_INTERFACE_H
24#define WIFI_INTERFACE_H
28#include "netsocket/WiFiAccessPoint.h"
115#if !defined(DOXYGEN_ONLY)
Network Interface base class.
Common interface that is shared between network devices.
Common interface between Wi-Fi devices.
virtual nsapi_error_t set_channel(uint8_t channel)=0
Set the Wi-Fi network channel.
virtual nsapi_error_t connect(const char *ssid, const char *pass, nsapi_security_t security=NSAPI_SECURITY_NONE, uint8_t channel=0)=0
Attempt to connect to a Wi-Fi network.
nsapi_error_t connect() override=0
Attempt to connect to a Wi-Fi network.
static WiFiInterface * get_default_instance()
Get the default Wi-Fi interface.
void set_default_parameters() override
defined(DOXYGEN_ONLY)
virtual int8_t get_rssi()=0
Get the current radio signal strength for active connection.
virtual nsapi_error_t set_credentials(const char *ssid, const char *pass, nsapi_security_t security=NSAPI_SECURITY_NONE)=0
Set the Wi-Fi network credentials.
nsapi_error_t disconnect() override=0
Stop the interface.
WiFiInterface * wifiInterface() final
Return pointer to a WiFiInterface.
virtual nsapi_size_or_error_t scan(WiFiAccessPoint *res, nsapi_size_t count)=0
Scan for available networks.
enum nsapi_security nsapi_security_t
Enum of encryption types.
signed int nsapi_size_or_error_t
Type used to represent either a size or error passed through sockets.
signed int nsapi_error_t
Type used to represent error codes.
unsigned int nsapi_size_t
Type used to represent the size of data passed through sockets.