Hi Forum and maybe @Dave ,
I’m implementing a pilot for a commercial system using Photon and would like to put forward a suggestion to make life a little easier for anyone that commissions their solutions remotely. Would it be possible to introduce a firmware command that would clear (delete) a single WiFi credential?
My logic is that devices could be issued with a generic and simple SSID and Password credential preloaded (say, SSID “MyPhoton” and password: “MyPassword”). In the event an installer is unable to get the Android or Apple smart device apps to work, they could set up a temporary WiFi hotspot using their smartphone (using the above credentials) to get the Photon online – after that I could use the WiFi.setCredentials command by remote firmware flash to provide the actual (more secure) local WiFi credentials.
The problem is that the simple credentials used with the hotspot would still reside in memory and potentially be a security issue. If, after flashing the legitimate local credentials I could then erase the instance of the simple SSID and Password (while retaining the legitimate local credentials) this system will work. Maybe the command could be something like WiFi. clearthisCredential ("MyPhoton ", " MyPassword ");
Apologies if this has been a little long-winded but I write out of shear frustration. Both the Particle Android and iPhone /Apple Apps, seem to be unreliable as a mechanism to commission WiFi credentials on Photon. Personally, I haven’t had much trouble – but on the three occasions I’ve tried to get people I consider reasonably technically capable to set the WiFi credentials using the Apps they have failed – despite some considerable time “talking them through”.
If I have missed something or there is a simple fix for this dilemma please let me know – I’m happy to do my homework if I know where to look.