From 402a751420fa73a78b9b79cd3f6e0d26b58a5842 Mon Sep 17 00:00:00 2001 From: "Deomid \"rojer\" Ryabkov" Date: Mon, 14 Jun 2021 22:01:18 +0100 Subject: [PATCH] Fire the CONNECTING event when trying to connect --- src/mgos_wifi_sta.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mgos_wifi_sta.c b/src/mgos_wifi_sta.c index 299b929..92bcb8c 100644 --- a/src/mgos_wifi_sta.c +++ b/src/mgos_wifi_sta.c @@ -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; }