MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_wlan_is_connected

Function rt_wlan_is_connected

components/drivers/wlan/dev_wlan_mgnt.c:1109–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109rt_bool_t rt_wlan_is_connected(void)
1110{
1111 rt_bool_t _connect;
1112
1113 if (_sta_is_null())
1114 {
1115 return RT_FALSE;
1116 }
1117 _connect = _sta_mgnt.state & RT_WLAN_STATE_CONNECT ? RT_TRUE : RT_FALSE;
1118 RT_WLAN_LOG_D("%s is run : %s", __FUNCTION__, _connect ? "connect" : "disconnect");
1119 return _connect;
1120}
1121
1122rt_bool_t rt_wlan_is_ready(void)
1123{

Callers 7

wifi_statusFunction · 0.85
_is_do_connectFunction · 0.85
rt_wlan_mgnt_workFunction · 0.85
rt_wlan_event_dispatchFunction · 0.85
rt_wlan_connectFunction · 0.85
rt_wlan_connect_advFunction · 0.85
rt_wlan_get_infoFunction · 0.85

Calls 1

_sta_is_nullFunction · 0.85

Tested by

no test coverage detected