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

Function rt_wlan_get_rssi

components/drivers/wlan/dev_wlan_mgnt.c:1203–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1201}
1202
1203int rt_wlan_get_rssi(void)
1204{
1205 int rssi = 0;
1206
1207 if (_sta_is_null())
1208 {
1209 return -RT_EIO;
1210 }
1211
1212 MGNT_LOCK();
1213 rssi = rt_wlan_dev_get_rssi(STA_DEVICE());
1214 RT_WLAN_LOG_D("%s is run rssi:%d", __FUNCTION__, rssi);
1215 MGNT_UNLOCK();
1216 return rssi;
1217}
1218
1219rt_err_t rt_wlan_start_ap(const char *ssid, const char *password)
1220{

Callers 2

wifi_statusFunction · 0.85
rt_wlan_get_infoFunction · 0.85

Calls 2

_sta_is_nullFunction · 0.85
rt_wlan_dev_get_rssiFunction · 0.85

Tested by

no test coverage detected