Skip to content

Commit 7f803c0

Browse files
authored
Merge pull request micropython#3489 from astrobokonon/esp32s2-fixconnection
ESP32S2: Enter station mode before connecting
2 parents 5ac3c36 + 2f6d7c9 commit 7f803c0

File tree

1 file changed

+2
-0
lines changed
  • ports/esp32s2/common-hal/wifi

1 file changed

+2
-0
lines changed

ports/esp32s2/common-hal/wifi/Radio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ void common_hal_wifi_radio_stop_scanning_networks(wifi_radio_obj_t *self) {
106106

107107
wifi_radio_error_t common_hal_wifi_radio_connect(wifi_radio_obj_t *self, uint8_t* ssid, size_t ssid_len, uint8_t* password, size_t password_len, uint8_t channel, mp_float_t timeout, uint8_t* bssid, size_t bssid_len) {
108108
// check enabled
109+
start_station(self);
110+
109111
wifi_config_t* config = &self->sta_config;
110112
memcpy(&config->sta.ssid, ssid, ssid_len);
111113
config->sta.ssid[ssid_len] = 0;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy