Yes, I know the topic title got everyone’s attention . Basically, with my research on the forum, I’ve noticed that both the Core and Photon know the encryption method on each and every network that they can see.
With that being the case, I submit that the “Auth” property on WiFi.setCredentials() is unnecessary–it can be auto-filled by the firmware, which already knows the encryption method. Yes, I’m aware that it is optional, but it appears to then default to assuming WPA2 encryption. The example from the docs:
// Connects to a network ---->secured with WPA2 credentials<---- WiFi.setCredentials(SSID, PASSWORD); WiFi.setCredentials("My_Router", "mypasswordishuge");
Ditto in the Particle Dev IDE–there should not be an option to change the encryption method on the “Setup device’s WiFi” feature. (P.S. The lockout shade bug on this feature is still there in the latest version of Particle Dev.)
It seems to me that if the Photon/Core can’t determine the encryption level on the network, it probably can’t connect to it, either! Correct me if I’m mistaken about this.