Repository navigation
Commit f72e924
committed
feat(wifi): add currentRSSI() for live connection signal strength
rssi(int) only reports RSSI from the last scanNetworks() results, so
there was no way to read the signal strength of the AP currently
connected to without rescanning. currentRSSI() queries AT+CWJAP?
directly and parses the live RSSI out of the response, returning
INT16_MIN if not connected or the command fails.
Verified on hardware: firmware's +CWJAP: response matches stock
ESP-AT format, RSSI trends weaker with distance, and disconnected
state returns a bare OK with no +CWJAP: line (clean failure path).1 parent 2ca0528 commit f72e924
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1021 | 1050 | | |
1022 | 1051 | | |
1023 | 1052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
0 commit comments