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:
MaxineMuster
2025-07-10 21:51:05 +02:00
committed by GitHub
parent 7bb04bdda2
commit 01c029898d
14 changed files with 276 additions and 27 deletions

View File

@ -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);