I’m reading/using my SSID & network password from a file on SD successfully but I’m having trouble doing the same with the third and fourth arguments for WiFi.setCredentials.
WiFi.setCredentials(networkSSID, networkPass, WPA2, WLAN_CIPHER_AES);
I’m storing all four variables as char arrays, and networkSSID and networkPass both work fine. However, according to compile errors the authentication procedure and cipher both need to be long integers. I tried converting my char arrays to Strings, and then using the .toInt() method, which allowed it to compile, but the Photon couldn’t connect using the credentials.
I want to include all four arguments on SD in order to cover all bases, as this will potentially be used in many different network environments. Any help would be appreciated.