Wifi.RSSI(i) invalid argument with EclipseArduino IDE V3
Posted: Tue May 24, 2016 12:02 pm
I am using Windows EclipseArduino IDE V3
I have been beating my head against the wall for a few days with this problem. I have code which includes
Serial.print(WiFi.SSID(i));
Serial.print(WiFi.RSSI(i));
When I compile under Arduino IDE there are no errors. When I compile the exact same code under EclipseArduino IDE V3 the (i) is flagged as an error. The exact same code
Serial.print(WiFi.SSID());
Serial.print(WiFi.RSSI());
Is fine, except, of course I can't scan for more than 1 network. I did complete "clean" reinstalls of Arduino and EclipseArduino but it didn't help.
I suspect the problem is in the file "ESP8266WiFiMulti.cpp" where the compile can't figure out what
strdup() is 2 lines newAP.ssid = strdup(ssid);
I get the error - Function 'strdup' could not be resolved
It turns out that strdup is not a standard c function.
I've tried setting compiler flags but nothing seems to work. I can get rid of the problem by inserting my own version of strdup() but that might cause other issues when the library is updated.
Does anybody have any suggestions?
Thanks
I have been beating my head against the wall for a few days with this problem. I have code which includes
Serial.print(WiFi.SSID(i));
Serial.print(WiFi.RSSI(i));
When I compile under Arduino IDE there are no errors. When I compile the exact same code under EclipseArduino IDE V3 the (i) is flagged as an error. The exact same code
Serial.print(WiFi.SSID());
Serial.print(WiFi.RSSI());
Is fine, except, of course I can't scan for more than 1 network. I did complete "clean" reinstalls of Arduino and EclipseArduino but it didn't help.
I suspect the problem is in the file "ESP8266WiFiMulti.cpp" where the compile can't figure out what
strdup() is 2 lines newAP.ssid = strdup(ssid);
I get the error - Function 'strdup' could not be resolved
It turns out that strdup is not a standard c function.
I've tried setting compiler flags but nothing seems to work. I can get rid of the problem by inserting my own version of strdup() but that might cause other issues when the library is updated.
Does anybody have any suggestions?
Thanks