It would not compile after downloading it, I had to insert function prototypes. Then I commented out a few bits and got it mostly going but stuck with a strcpy function giving a compile error.
Error is "WiFiScanOpen:108: error: cannot convert 'String' to 'const char*' for argument '2' to 'char* strcpy(char*, const char*)' strcpy (WiFiSSID, WiFi.SSID(i));"
Relevant code snippits are
#include "ESP8266WiFi.h"
...
int n = WiFi.scanNetworks();
...
strcpy (WiFSSID, WiFi.SSID(i)); <== This line giving the compile error, it is inside a for loop for i
I also get compiler warnings for lines like the following, but they don't stop it compiling or running.
sendStrXY("No Nets in Range", ln++, 0);
Warning is
WiFiScanOpen.ino:77:42: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] sendStrXY("No Nets in Range", ln++, 0);
Can anyone help?