-
Notifications
You must be signed in to change notification settings - Fork 467
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
At the moment, rssi is not implemented for LN882H, so GUI for LN882H always shows
Wifi RSSI: Excellent (0dBm)

Patch
I suggest this patch to show the rssi:

diff --git a/src/hal/ln882h/hal_wifi_ln882h.c b/src/hal/ln882h/hal_wifi_ln882h.c
index 0bee18f0..d44d32f6 100644
--- a/src/hal/ln882h/hal_wifi_ln882h.c
+++ b/src/hal/ln882h/hal_wifi_ln882h.c
@@ -131,7 +131,9 @@ void HAL_PrintNetworkInfo()
int HAL_GetWifiStrength()
{
alert_log("HAL_GetWifiStrength");
- return 0;
+ int8_t val;
+ wifi_sta_get_rssi(&val);
+ return val;
}
void HAL_WiFi_SetupStatusCallback(void (*cb)(int code))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request