Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mongoose-os-libs/rpc-service-wifi


https://github.com/mongoose-os-libs/rpc-service-wifi

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

# RPC Service - WiFi

## Wifi.Scan

Scan wifi networks.

Arguments: none.

Example usage:

mos call Wifi.Scan

[
{
"ssid": "my_essid",
"bssid": "12:34:56:78:90:ab",
"auth": 0,
"channel": 1,
"rssi": -25
},
...
]

### Authentication ENUM mapping

From mgos_wifi.h
```
enum mgos_wifi_auth_mode {
MGOS_WIFI_AUTH_MODE_OPEN = 0,
MGOS_WIFI_AUTH_MODE_WEP = 1,
MGOS_WIFI_AUTH_MODE_WPA_PSK = 2,
MGOS_WIFI_AUTH_MODE_WPA2_PSK = 3,
MGOS_WIFI_AUTH_MODE_WPA_WPA2_PSK = 4,
MGOS_WIFI_AUTH_MODE_WPA2_ENTERPRISE = 5,
};
```