Skip to content

Commit

Permalink
Improve docs for Wifi JS API
Browse files Browse the repository at this point in the history
PUBLISHED_FROM=d6f11b7043346faae64306483e79cc6355bbf6be
  • Loading branch information
dimonomid authored and cesantabot committed Nov 16, 2017
1 parent cf9cc4b commit 7cdbbf7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mjs_fs/api_wifi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
// }
Expand All @@ -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;
Expand Down

0 comments on commit 7cdbbf7

Please sign in to comment.