I am using the GIGA R1 and the GIGA Display. I wanted to experiment with WiFi so I tried the example shown on GIGA R1 WiFi Network Examples here: GIGA R1 WiFi Network Examples | Arduino Documentation
The 'Scan Networks' example works fine, so I know the basic hardware is working.
However, when I try the 'Wi-Fi RTC Example', although I get no compile errors, I see this on the serial monitor:
`11:23:37.140 -> Attempting to connect to SSID:
This is odd because I have specified the SSID and password in the arduino_secrets.h tab which looks like this:
//arduino_secrets.h header file
#define SECRET_SSID "something"
#define SECRET_PASS "password"
(SSID and password changed of course)
The network is actually WEP so I thought I might have to change line 67, which in the example says:
status = WiFi.begin(ssid, pass);
to...
status = WiFi.begin(ssid, keyIndex, pass);
...but when I try this I get the following compile error:
C:\Users\nigel\AppData\Local\Temp\arduino\sketches\F7F8542EB79B0E12F9A8C07AA1F03F77\sketch\wifi2.ino.cpp.o: In function `setup':
C:\Users\nigel\Documents\Arduino\wifi2/wifi2.ino:67: undefined reference to `arduino::WiFiClass::begin(char const*, unsigned char, char const*)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
I wonder why the WiFi.begin doesn't seem to be working properly.
I have a suspicion that the fact that it is not printing the actual SSID with these lines:
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
...may be significant, but I can't see why it doesn't work, when in the example called 'WPA Connection' it does print the SSID (even though it (rightly) doesn't connect because it's a WEP network).