I am at a complete loss to figure out what is wrong with WiFi.RSSI.
When I do this
int r = WiFi.RSSI(i); //I get an error
int p = WiFi.RSSI(); //I do not get an error
This seems that somehow the code in ESP8266 WiFiScan is not getting compiled correctly, even though int n = WiFi.scanNetworks(); generates no error.
I tried inserting a #pragma statement to see if the compiler was getting the to the declaration
int32_t ESP8266WiFiScanClass::RSSI(uint8_t i) {
struct bss_info* it = reinterpret_cast<struct bss_info*>(_getScanInfoByIndex(i));
if(!it) {
return 0;
}
return it->rssi;
}
but somehow #pragmas are suppressed (i can't figure out where).
Can I ask what IDE you are using that works? Arduino works OK for me, but I am working on a project which I figure is going to be very big so it is too primitive.
I tried using PlatformIO but got nowhere (couldn't compile a thing) and, in any event, I am using Eclipse for other things.
Thanks again