18#ifndef WICED_INTERFACE_H
19#define WICED_INTERFACE_H
21#if defined(MBED_CONF_NSAPI_PRESENT)
24#include "EthernetInterface.h"
25#include "netsocket/OnboardNetworkStack.h"
26#include "wiced_emac.h"
36 EMAC &emac = WICED_EMAC::get_instance(),
This interface should be used to abstract low level access to networking hardware All operations rece...
EMACInterface class Implementation of the NetworkInterface for an EMAC-based driver.
mbed OS API for onboard IP stack abstraction
static OnboardNetworkStack & get_default_instance()
Return the default on-board network stack.
Common interface between Wi-Fi devices.
virtual nsapi_error_t set_channel(uint8_t channel)=0
Set the Wi-Fi network channel.
nsapi_error_t connect() override=0
Attempt to connect to a Wi-Fi network.
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.
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_error_t
Type used to represent error codes.
@ NSAPI_ERROR_UNSUPPORTED