Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
wifi.h File Reference

WiFi driver SDK for Rishka's SDK. More...

#include <librishka.h>
#include <librishka/types.h>

Go to the source code of this file.

Classes

class  WiFi
 Provides an interface for managing WiFi connections on the Rishka system. More...
 

Enumerations

enum  WiFiAuthMode {
  WIFI_AUTH_OPEN = 0x00 , WIFI_AUTH_WEP , WIFI_AUTH_WPA_PSK , WIFI_AUTH_WPA2_PSK ,
  WIFI_AUTH_WPA_WPA2_PSK , WIFI_AUTH_ENTERPRISE , WIFI_AUTH_WPA2_ENTERPRISE = 0x05 , WIFI_AUTH_WPA3_PSK ,
  WIFI_AUTH_WPA2_WPA3_PSK , WIFI_AUTH_WAPI_PSK , WIFI_AUTH_WPA3_ENT_192 , WIFI_AUTH_MAX
}
 Enumerates the supported WiFi authentication modes. More...
 
enum  WiFiScanMethod { WIFI_FAST_SCAN = 0x00 , WIFI_ALL_CHANNEL_SCAN = 0x01 }
 Defines the methods used for scanning WiFi networks. More...
 
enum  WiFiSortMethod { WIFI_CONNECT_AP_BY_SIGNAL = 0 , WIFI_CONNECT_AP_BY_SECURITY }
 Defines the methods for sorting access points in the scan list. More...
 
enum  WiFiStatus {
  WIFI_STATUS_NO_SHIELD = 0xff , WIFI_STATUS_STOPPED = 0xfe , WIFI_STATUS_IDLE_STATUS = 0x00 , WIFI_STATUS_NO_SSID_AVAIL = 0x01 ,
  WIFI_STATUS_SCAN_COMPLETED = 0x02 , WIFI_STATUS_CONNECTED = 0x03 , WIFI_STATUS_CONNECT_FAILED = 0x04 , WIFI_STATUS_CONNECTION_LOST = 0x05 ,
  WIFI_STATUS_DISCONNECTED = 0x06
}
 Enumerates the possible states of the WiFi connection.
 

Detailed Description

WiFi driver SDK for Rishka's SDK.

Author
Nathanne Isip

This header file defines the WiFi class, which provides a set of methods for managing WiFi connections. It supports connecting to access points, configuring connection parameters, and managing WiFi-related information.

Enumeration Type Documentation

◆ WiFiAuthMode

Enumerates the supported WiFi authentication modes.

Enumerator
WIFI_AUTH_OPEN 

Open

WIFI_AUTH_WEP 

WEP

WIFI_AUTH_WPA_PSK 

WPA-PSK

WIFI_AUTH_WPA2_PSK 

WPA2-PSK

WIFI_AUTH_WPA_WPA2_PSK 

WPA-WPA2-PSK

WIFI_AUTH_ENTERPRISE 

WiFi EAP security

WIFI_AUTH_WPA2_ENTERPRISE 

WiFi EAP security

WIFI_AUTH_WPA3_PSK 

WPA3-PSK

WIFI_AUTH_WPA2_WPA3_PSK 

WPA2-WPA3-PSK

WIFI_AUTH_WAPI_PSK 

WAPI-PSK

WIFI_AUTH_WPA3_ENT_192 

WPA3-ENT-SUITE-B 192-BIT

WIFI_AUTH_MAX 

Maximum number of authentication modes

◆ WiFiScanMethod

Defines the methods used for scanning WiFi networks.

Enumerator
WIFI_FAST_SCAN 

Do fast scan, scan will end after find SSID match AP

WIFI_ALL_CHANNEL_SCAN 

All channel scan, scan will end after scan all the channel

◆ WiFiSortMethod

Defines the methods for sorting access points in the scan list.

Enumerator
WIFI_CONNECT_AP_BY_SIGNAL 

Sort match AP in scan list by RSSI

WIFI_CONNECT_AP_BY_SECURITY 

Sort match AP in scan list by security mode