mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
github: add LOLIN-C3-mini compatibility
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
3ee5bb45c8
commit
a048e77d71
2 changed files with 6 additions and 1 deletions
|
|
@ -329,7 +329,7 @@ uint32_t Network::getChipId() {
|
|||
return chipId;
|
||||
}
|
||||
int Network::getStrengthBySSID(const char *ssid) {
|
||||
int strength = -100;
|
||||
int32_t strength = -100;
|
||||
int n = WiFi.scanNetworks(false, true);
|
||||
for(int i = 0; i < n; i++) {
|
||||
if(WiFi.SSID(i).compareTo(ssid) == 0) strength = max(WiFi.RSSI(i), strength);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue