I tried the following steps.
Pressed the Button for about 10+ sec. Blue flashing fast.
particle serial wifi
Entered the credentials.
Directly after entering the wpa2 it flashes green. The mentioned reboot will not be performed.
After an time the photon then switch back to slow blinking blue.
Did you have an idea?
I also performed the steps above. But this does changed the behavior.
When I enter âparticle serial wifiâ I get the following lines:
particle serial wifi
? Should I scan for nearby Wi-Fi networks? Yes
? Select the Wi-Fi network with which you wish to connect your device: WIFI1
? Should I try to auto-detect the wireless security type? Yes
Detected WPA2(PSK/AES/AES) security
? Wi-Fi Password xxxxxx
Done! Your device should now restart.
But when I enter the password then it directly flashes green. (No restart as mentioned)
I didnât have a serial terminal only usb connection. How could I managed the âold-fashioned wayâ ?
With CLI, it tend to not use the auto-scan feature, since I know my networks
The olâ serial way works via USB too.
put your device into Listening Mode (the same as with CLI)
open the respective COM port for your Photon with serial monitor like PuTTY
enter âwâ
now you will be prompted for SSID, Security Scheme, WLAN cipher if the network is not currently available/visible and Pass Phrase
After that you should see your device fall out of Listening Mode and I usually press RESET after that (olâd habbits die hard )
About selectAntenna(), I had a case where a âfunnyâ character flashed some code to his mates device that switched to the external antenna (and also a static IP), and that poor victim had a hell of a job tracking that down.