char ssid[] = SECRET_SSID; // your network SSID (name) char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP) void initWIFIShield(){ if (WiFi.status() == WL_NO_SHIELD) { shldStatus = "No WIFI Shield"; } else { shldStatus = "WIFI Shield Good"; } } void connectWIFI(){ int status = WL_DISCONNECTED; while (status != WL_CONNECTED) { // Connect to WPA/WPA2 network. Change this line if using open or WEP network: status = WiFi.begin(ssid, pass); // wait 2 seconds for connection: delay(2000); } } /************************************************************************** Display WIFI Connection parameters **************************************************************************/ void printWiFiStatus() { // print the SSID of the network you're attached to: connSSID = WiFi.SSID(); // print your WiFi shield's IP address: IPAddress ip = WiFi.localIP(); connIPaddr = converIPtoString(ip); // print the received signal strength: long rssi = WiFi.RSSI(); connSS = String(rssi); }