diff --git a/mjs_fs/api_wifi.js b/mjs_fs/api_wifi.js index fe848f0..b3d9c1a 100644 --- a/mjs_fs/api_wifi.js +++ b/mjs_fs/api_wifi.js @@ -8,7 +8,7 @@ // { // "ssid": "NetworkName", // "bssid": "12:34:56:78:90:ab", -// "authMode": 2, // Auth mode, one of AUTH constants. +// "authMode": Wifi.AUTH_MODE_WPA_PSK, // Auth mode, one of AUTH constants. // "channel": 11, // "rssi": -70 // } @@ -21,6 +21,13 @@ // ``` // Must be kept in sync with enum mgos_wifi_auth_mode +// ## **Auth modes** +// - `Wifi.AUTH_MODE_OPEN` +// - `Wifi.AUTH_MODE_WEP` +// - `Wifi.AUTH_MODE_WPA_PSK` +// - `Wifi.AUTH_MODE_WPA2_PSK` +// - `Wifi.AUTH_MODE_WPA_WPA2_PSK` +// - `Wifi.AUTH_MODE_WPA2_ENTERPRISE` Wifi.AUTH_MODE_OPEN = 0; Wifi.AUTH_MODE_WEP = 1; Wifi.AUTH_MODE_WPA_PSK = 2;