-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP8266WiFiClass::begin Starts in STA + AP mode? #28
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
Comments
We're only going from AP to AP_STA, we don't enable AP if it wasn't enabled previously. Imagine the following code:
If we would just do |
i never call softAP in my code only begin and i get an AP? |
Yes, because the SDK libs store the WiFi configuration. For now, please use |
ok thanks. |
fixed Links2004@3c7f046 |
- 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);
is there a reason for starting in WIFI_AP_STA mode?
in the default config the AP is "open" (no WPA2, no password), this can be a big risk of the security for the application or the network.
i preferred to only open the AP if the user really need it.
mode(WIFI_STA);
The text was updated successfully, but these errors were encountered: