Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Public Member Functions | |
void | enable (bool enabled, bool save=false) |
Enable / disable WiFi station. More... | |
bool | isEnabled () |
Get WiFi station enable status. More... | |
bool | config (const String &ssid, const String &password, bool autoConnectOnStartup=true, bool save=true) |
Configure WiFi station. More... | |
bool | connect () |
Connect WiFi station to network. More... | |
bool | disconnect () |
Disconnect WiFi station from network. More... | |
bool | isConnected () |
Get WiFi station connectoin status. More... | |
bool | isConnectionFailed () |
Get WiFi station connection failure status. More... | |
EStationConnectionStatus | getConnectionStatus () |
Get WiFi station connection status. More... | |
const char * | getConnectionStatusName () |
Get WiFi station connection status name. More... | |
bool | isEnabledDHCP () |
Get WiFi station DHCP enabled status. More... | |
void | enableDHCP (bool enable) |
Enable or disable WiFi station DHCP. More... | |
void | setHostname (const String &hostname) |
Set WiFi station DHCP hostname. More... | |
String | getHostname () |
Set WiFi station DHCP hostname. More... | |
IPAddress | getIP () |
Get WiFi station IP address. More... | |
String | getMAC (char sep= '\0') |
Get WiFi station MAC address. More... | |
IPAddress | getNetworkMask () |
Get WiFi station network mask. More... | |
IPAddress | getNetworkGateway () |
Get WiFi station default gateway. More... | |
IPAddress | getNetworkBroadcast () |
GetWiFi station broadcast address. More... | |
bool | setIP (IPAddress address) |
Set WiFi station IP address. More... | |
bool | setIP (IPAddress address, IPAddress netmask, IPAddress gateway) |
Set WiFi station IP parameters. More... | |
String | getSSID () |
Get WiFi station SSID. More... | |
String | getPassword () |
Get WiFi station password. More... | |
sint8 | getRssi () |
uint8 | getChannel () |
bool | startScan (ScanCompletedDelegate scanCompleted) |
Start WiFi station network scan. More... | |
void | smartConfigStart (SmartConfigType sctype, SmartConfigDelegate callback=nullptr) |
Start WiFi station smart configuration. More... | |
void | smartConfigStop () |
Stop WiFi station smart configuration. More... | |
Protected Member Functions | |
void | onSystemReady () override |
Handle system ready events. More... | |
void | internalCheckConnection () |
void | internalSmartConfig (sc_status status, void *pdata) |
Static Protected Member Functions | |
static void | staticScanCompleted (void *arg, STATUS status) |
static void | staticCheckConnection () |
static void | staticSmartConfigCallback (sc_status status, void *pdata) |