Skip to content

Commit 639d731

Browse files
committed
wifi network scan research update
1 parent 64f4487 commit 639d731

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

ArduinoNetAPIDev.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,17 @@ Method [RSSI](https://www.arduino.cc/reference/en/libraries/wifinina/wifi.rssi/)
273273

274274
### encryptionType (WiFi)
275275

276-
Method [`encryptionType`](https://www.arduino.cc/reference/en/libraries/wifinina/wifi.encryptiontype) Returns the encryption type used on the WiFi. It is a value from enum wl_enc_type
276+
Method [`encryptionType`](https://www.arduino.cc/reference/en/libraries/wifinina/wifi.encryptiontype) Returns the encryption type used on the WiFi. It is a value from enum `wl_enc_type`
277+
277278
```
278-
enum wl_enc_type { /* Values map to 802.11 encryption suites... */
279+
enum wl_enc_type { /* Values map to 802.11 Cipher Algorithm Identifier */
279280
ENC_TYPE_WEP = 5,
280281
ENC_TYPE_TKIP = 2,
282+
ENC_TYPE_WPA = ENC_TYPE_TKIP,
281283
ENC_TYPE_CCMP = 4,
284+
ENC_TYPE_WPA2 = ENC_TYPE_CCMP,
285+
ENC_TYPE_GCMP = 6,
286+
ENC_TYPE_WPA3 = ENC_TYPE_GCMP,
282287
/* ... except these two, 7 and 8 are reserved in 802.11-2007 */
283288
ENC_TYPE_NONE = 7,
284289
ENC_TYPE_AUTO = 8,

ArduinoNetAPILibs.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,21 @@ For libraries which can only run one WiFi interface, after `beginAP` standard ge
157157

158158
All researched libraries have method [`scanNetworks()`](https://www.arduino.cc/reference/en/libraries/wifi/wifi.scannetworks/) defined by the first WiFi library.
159159

160-
To get the result of networks scan, all libraries have methods defined by the first WiFi library: `SSID(n)`, `encryptionType(n)` and `RSSI(n)`. Additionally all libraries except of the old WiFi library have `channel(n)`.
161-
162-
Enumeration of encryption type constant names for`encryptionType(n)` are in esp32 and Portenta C33 very different from the common set used in WiFi, WiFi101, WiFiNINA, WiFiS3, esp8266 and WiFiEspAT.
163-
164-
All libraries except of the old WiFi library have [BSSID](https://www.arduino.cc/reference/en/libraries/wifinina/wifi.bssid/). WiFi, WiFi101 and WiFiNINA return reversed ordering of bytes.
160+
The scan result access methods:
161+
162+
| library | SSID(n) | BSSID(n,bssid) | channel(n) | encryptionType(n) | RSSI(n) |
163+
|---|:---:|:---:|:---:|:---:|:---:|
164+
|[WiFi][2]* || | |||
165+
|[WiFi101][4] ||*R |* |||
166+
|[WiFiNINA][3] || ✓R ||||
167+
|[WiFiS3][5] ||||||
168+
|[Mbed WiFi][6] ||||||
169+
|[C33 Wifi][8] |||| ✓(1) ||
170+
|[esp8266 WiFi][31] || + ||||
171+
|[esp32 WiFi][33] || + || ✓(1) ||
172+
|[WiFiEspAT][14] || ✓R ||||
173+
174+
(1) encryption type constant names are in esp32 and Portenta C33 very different from the common set used in other libraries
165175

166176
### Network services
167177

0 commit comments

Comments
 (0)