Skip to content

Commit

Permalink
Fire the CONNECTING event when trying to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Jun 14, 2021
1 parent a84d94b commit 402a751
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mgos_wifi_sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@ static void mgos_wifi_sta_run(int wifi_ev, void *ev_data, bool timeout) {
mgos_wifi_dev_sta_setup(&sta_cfg);
mgos_wifi_dev_sta_connect();
s_state = WIFI_STA_CONNECTING;
struct mgos_wifi_dev_event_info dei = {
.ev = MGOS_WIFI_EV_STA_CONNECTING,
};
mgos_wifi_dev_event_cb(&dei);
mgos_wifi_sta_set_timeout(true /* run_now */);
break;
}
Expand Down

0 comments on commit 402a751

Please sign in to comment.