ekstrand / ESP8266wifi

ESP8266 Arduino library with built in reconnect functionality
MIT License
451 stars 235 forks source link

Add methods for AP scanning (CWLAP) #19

Closed tuedelue closed 7 years ago

tuedelue commented 8 years ago

New methods listAps and listAp allow scanning for all APs in range or a specific SSID (& MAC & channel), respectively.

A new Enum has been introduced represendting AP security types (Open, WEP, WPA, ...). For AP information, there is a new struct listApDataItem. Further, the readBuffer method has been changed such that it now supports a timeout instead of depending on data being available (reading data otherwise causes trouble with reasonably small serial RX buffers).

The filtering features may require a newer chip firmware version. [Tested with: AT version:0.40.0.0(Aug 8 2015 14:45:58) SDK version:1.3.0 Ai-Thinker Technology Co.,Ltd. Build:1.3.0.2 Sep 11 2015 11:48:04]

tuedelue commented 7 years ago

Well, this needs rebasing as my dev commit history is rather ugly; closed for now.