Hello, we have developed a custom piece of software for configuring/registering our Photons. It extracts the serial number, SSID (not in a good way, see below), renames the devices, creates database record in our database, claims the Photon, adds it to our particle product list, etc. Its automated.
The problem is how we are extracting the SSID. Currently the software types in these commands into a command prompt shell to get a list of SSIDs:
netsh interface set interface name=wi-fi admin=disabled
netsh interface set interface name=wi-fi admin=enabled
netsh wlan show networks
Our program then searches through the text and picks out the SSID. This method can sometimes be unreliable, and the biggest problem is we can only have 1 person configuring SSID’s at a time… otherwise multiple Photon SSID’s will show up in the list, and the software doesn’t know which SSID is which.
So we need a method for extracting the SSID directly from the Photon device instead. But there doesn’t really seem to be a good way of doing this?
What have you guys done, or do you have any recommendations? Thanks and any help/advice is greatly appreciated!