-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP8266WiFi extended functions #300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- begin changes allow setting BSSID/MAC and Channel of an AP for faster connection (#261) now checks if ssid and passphrase to big selecting Wifi mode in better way (fix for #28) - ESP8266WiFiMulti uses the new functions to auto select best AP even in a multi AP WiFi network (more the one AP has same SSID) - add new functions to get current Connected AP: uint8_t * BSSID(void); int32_t Channel(void); - add new functions to get infos from scanned networks: uint8_t * BSSID(uint8_t networkItem); int32_t Channel(uint8_t networkItem); bool isHidden(uint8_t networkItem); bool getNetworkInfo(uint8_t networkItem, const char** ssid, uint8_t * encryptionType, int32_t * RSSI, uint8_t ** BSSID, int32_t * channel, bool * isHidden);
Have just cloned and build from source 1.6.5, loaded the WiFiScan example and I get the following error when I try to compile: WiFiScan.ino: In function 'void loop()': |
Same here, can't use the BSSID atm. |
Also check if you have the board manager package installed. You need to uninstall it if you have because it overrides any cores bundled with the app. |
Let me try some telepathy... did you replace |
igrr yes! Sorry! |
have add some functions to get the MAC / BSSID as string. |
For those like I who want to convert the WiFi.BSSID() result to a string, I've created the following function (inspired by @Links2004 functions):
This can be called using:
|
@kgolding great function. Best answer. Thanks |
ESP8266WiFi extended functions
begin changes
allow setting BSSID/MAC and Channel of an AP for faster connection (#261)
now checks if ssid and passphrase to big
selecting Wifi mode in better way (fix for #28)
ESP8266WiFiMulti uses the new functions to auto select best AP even in a multi AP WiFi network (more the one AP has same SSID)
add new functions to get current Connected AP:
uint8_t * BSSID(void);
int32_t Channel(void);
add new functions to get infos from scanned networks:
uint8_t * BSSID(uint8_t networkItem);
int32_t Channel(uint8_t networkItem);
bool isHidden(uint8_t networkItem);
bool getNetworkInfo(uint8_t networkItem, const char** ssid, uint8_t * encryptionType, int32_t * RSSI, uint8_t ** BSSID, int32_t * channel, bool * isHidden);