Skip to content

Commit

Permalink
Feature: Show BSSID in the web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Jun 8, 2023
1 parent 721f82a commit 91d3cd1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/WebApi_network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ void WebApiNetworkClass::onNetworkStatus(AsyncWebServerRequest* request)

root["sta_status"] = ((WiFi.getMode() & WIFI_STA) != 0);
root["sta_ssid"] = WiFi.SSID();
root["sta_bssid"] = WiFi.BSSIDstr();
root["sta_rssi"] = WiFi.RSSI();
root["network_hostname"] = NetworkSettings.getHostname();
root["network_ip"] = NetworkSettings.localIP().toString();
Expand Down
4 changes: 4 additions & 0 deletions webapp/src/components/WifiStationInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<th>{{ $t('wifistationinfo.Ssid') }}</th>
<td>{{ networkStatus.sta_ssid }}</td>
</tr>
<tr>
<th>{{ $t('wifistationinfo.Bssid') }}</th>
<td>{{ networkStatus.sta_bssid }}</td>
</tr>
<tr>
<th>{{ $t('wifistationinfo.Quality') }}</th>
<td>{{ $n(getRSSIasQuality(networkStatus.sta_rssi), 'percent') }}</td>
Expand Down
1 change: 1 addition & 0 deletions webapp/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
"Enabled": "aktiv",
"Disabled": "nicht aktiv",
"Ssid": "SSID",
"Bssid": "BSSID",
"Quality": "Qualität",
"Rssi": "RSSI"
},
Expand Down
1 change: 1 addition & 0 deletions webapp/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
"Enabled": "enabled",
"Disabled": "disabled",
"Ssid": "SSID",
"Bssid": "BSSID",
"Quality": "Quality",
"Rssi": "RSSI"
},
Expand Down
1 change: 1 addition & 0 deletions webapp/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
"Enabled": "activé",
"Disabled": "désactivé",
"Ssid": "SSID",
"Bssid": "BSSID",
"Quality": "Qualité",
"Rssi": "RSSI"
},
Expand Down
1 change: 1 addition & 0 deletions webapp/src/types/NetworkStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export interface NetworkStatus {
// WifiStationInfo
sta_status: boolean;
sta_ssid: string;
sta_bssid: string;
sta_rssi: number;
// WifiApInfo
ap_status: boolean;
Expand Down

0 comments on commit 91d3cd1

Please sign in to comment.