arduino-emulator
Loading...
Searching...
No Matches
arduino::WifiMock Class Reference

Public Member Functions

virtual void begin (const char *name, const char *pwd)
WiFiMode_t getMode ()
int hostByName (const char *host, IPAddress &result)
 Resolves a host name (or an IP address in text form) to an IPv4 address.
IPAddress & localIP ()
int macAddress ()
void mode (WiFiMode_t m)
void setClientInsecure ()
void setSleep (bool)
void setSleep (wifi_ps_type_t)
bool softAP (const char *ssid, const char *passphrase=nullptr, int channel=1, int ssid_hidden=0, int max_connection=4)
bool softAPdisconnect (bool wifioff=false)
IPAddress & softAPIP ()
wl_status_t status ()

Protected Attributes

IPAddress adress
int mac = 0
WiFiMode_t wifi_mode = WIFI_STA

Member Function Documentation

◆ softAP()

bool arduino::WifiMock::softAP ( const char * ssid,
const char * passphrase = nullptr,
int channel = 1,
int ssid_hidden = 0,
int max_connection = 4 )
inline

Access point (ESP32): the computer is already in the network, so this only changes the mode; softAPIP() is the address of the computer


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