mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-11 03:05:56 +00:00
Show correct BSSID in json status instead of a "fake" one (#1689)
* Add HAL_GetWiFiBSSID() and HAL_GetWiFiChannel() commands Display correct BSSID and channel in JSON status * Testing bssid RTL * Typo and new try for RTL * Fix BSSID returned * bettter * test * Update hal_wifi_xradio.c --------- Co-authored-by: Tester23 <85486843+openshwprojects@users.noreply.github.com>
This commit is contained in:
@ -457,8 +457,10 @@ static int http_tasmota_json_status_STS(void* request, jsonCb_t printer, bool bA
|
||||
printer(request, "\"Wifi\":{"); // open WiFi
|
||||
JSON_PrintKeyValue_Int(request, printer, "AP", 1, true);
|
||||
JSON_PrintKeyValue_String(request, printer, "SSId", CFG_GetWiFiSSID(), true);
|
||||
JSON_PrintKeyValue_String(request, printer, "BSSId", "30:B5:C2:5D:70:72", true);
|
||||
JSON_PrintKeyValue_Int(request, printer, "Channel", 11, true);
|
||||
|
||||
JSON_PrintKeyValue_String(request, printer, "BSSId", g_wifi_bssid, true);
|
||||
JSON_PrintKeyValue_Int(request, printer, "Channel", g_wifi_channel, true);
|
||||
|
||||
JSON_PrintKeyValue_String(request, printer, "Mode", "11n", true);
|
||||
JSON_PrintKeyValue_Int(request, printer, "RSSI", (HAL_GetWifiStrength() + 100) * 2, true);
|
||||
JSON_PrintKeyValue_Int(request, printer, "Signal", HAL_GetWifiStrength(), true);
|
||||
|
||||
Reference in New Issue
Block a user