File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ $INCLUDE[header.inc]$
43
43
<label >Connection to: </label ><label class =" text-info" >$STA_SSID$</label ><BR >
44
44
<label >Channel: </label ><label class =" text-info" >$STA_CHANNEL$</label ><BR >
45
45
<label >Status: </label ><label class =" text-info" >$STA_STATUS$</label ><BR >
46
+ <label >Signal strength: </label ><label class =" text-info" >$STA_SIGNAL$%</label ><BR >
46
47
<label >DHCP Client: </label ><label class =" text-info" >$STA_DHCP_STATUS$</label ><BR >
47
48
<label >IP: </label ><label class =" text-info" >$STA_IP$</label ><BR >
48
49
<label >Gateway: </label ><label class =" text-info" >$STA_GW$</label ><BR >
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ const char VALUE_CHANGE_PASSWORD [] PROGMEM = "Change Password";
205
205
const char MISSING_DATA [] PROGMEM = " Error: Missing data" ;
206
206
const char EEPROM_NOWRITE [] PROGMEM = " Error: Cannot write to EEPROM" ;
207
207
const char KEY_WEB_UPDATE [] PROGMEM = " $WEB_UPDATE_VISIBILITY$" ;
208
+ const char KEY_STA_SIGNAL [] PROGMEM = " $STA_SIGNAL$" ;
208
209
209
210
bool WEBINTERFACE_CLASS::isHostnameValid (const char * hostname)
210
211
{
@@ -994,6 +995,9 @@ void handle_web_interface_root()
994
995
} else {
995
996
ValuesList.add (FPSTR (VALUE_DISCONNECTED));
996
997
}
998
+ // Signal strength
999
+ KeysList.add (FPSTR (KEY_STA_SIGNAL));
1000
+ ValuesList.add (intTostr (100 +WiFi.RSSI ()));
997
1001
// DHCP Client status
998
1002
GetDHCPStatus (KeysList, ValuesList);
999
1003
// IP address
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ $STA_MAC$ : Mac address of Station
60
60
$STA_SSID$ : SSID used by STA
61
61
$STA_CHANNEL$ : Channel
62
62
$STA_STATUS$ : Connection Status
63
+ $STA_SIGNAL$ : Signal strength
63
64
$STA_DHCP_STATUS$ : DHCP Client status
64
65
$STA_IP$ : STA IP
65
66
$STA_GW$ : STA Gateway
You can’t perform that action at this time.
0 commit comments