I’m setting up a module via CLI, but when I try to setup the device I get the following error:
I have detected a P1 connected via USB. ? Would you like to continue with this one? Yes ! The Photon supports secure Wi-Fi setup. We'll try that first. ! PROTIP: Wireless setup of Photons works like a wizard! ! PROTIP: We will automagically change the Wi-Fi network to which your computer is connected. ! PROTIP: You will lose your connection to the internet periodically. ? Found "Photon-XXXX". Would you like to perform setup on this one now? Yes ! PROTIP: You will need to know the password for your Wi-Fi network (if any) to proceed. ! PROTIP: You can press ctrl + C to quit setup at any time. > Obtained magical secure claim code. ! PROTIP: There was a network error while connecting to the cloud... ! PROTIP: We need an active internet connection to successfully complete setup. ! PROTIP: Are you currently connected to the internet? Please double-check and try again.
Now I know for sure that I have a valid connection and the script should know this as well since it manages to download the “magical secure claim code”. This happens with both particle-cli v1.20.1 and v1.21.0.
Anybody else seen this?