After reboot, argon enters into setup mode automatically without clicking setup mode button.
Every time, I am executing “particle serial wifi” command via CLI.
I had tried to reflash bootloader, too.
particle flash --usb bootloader-0.8.0-rc.27-argon.bin -v
But same issue on my argon.
And if it is in fact that then you should call WiFi.on() prior the Particle.connect() call.
While this shouldn't normally be required and will hopefully be fixed, it never harms actually having it there.
This is the respective issue filed a while ago. https://github.com/particle-iot/firmware/issues/1631
Since the only response there seems to be countering my arguments for the "legacy" behaviour to be re-implemented, any support for my proposal to "fix" it would be welcome.
However, you can also always try Safe Mode to update OTA.
That would suggest there are no valid WiFi credentials stored. In order to store WiFi creds the WiFi module should be on too, but if your application doesn't power it on you could go into Safe Listening Mode.
BTW, reflashing the bootloader (which only works via --serial) wouldn't change anything in that respect.
You could follow the instructions provided in this post
After that, you should be able to run particle serial wifi (avoid any autodetect features offered tho') in order to provide new WiFi settings that should allow your device to connect to your local WiFi.
Are you sure the Wi-Fi credentials didn’t set? If you’ve cleared the credentials using the button combination or the device is brand new, it will stay in setup mode until you’ve successfully completed the mobile set up process. Just setting the Wi-Fi credentials is not sufficient to get out of setup mode (listening mode, blinking dark blue).
You can also clear the setup bit using the following code.
#include "dct.h"
SYSTEM_MODE(SEMI_AUTOMATIC);
void setup() {
// This clears the setup done flag on brand new devices so it won't stay in listening mode
const uint8_t val = 0x01;
dct_write_app_data(&val, DCT_SETUP_DONE_OFFSET, 1);
}
It should also be possible to clear the setup flag using dfu-util, but I don’t have the command handy.
You should remove the device from that black foam. Use a proper breadboard. The foam is conductive to reduce ESD during shipping. As others have found out the hard way, running the device in the foam can cause unexpected and erratic behavior.
I have flashed your mentioned code #include “dct.h”
SYSTEM_MODE(SEMI_AUTOMATIC);
void setup() {
// This clears the setup done flag on brand new devices so it won’t stay in listening mode
const uint8_t val = 0x01;
dct_write_app_data(&val, DCT_SETUP_DONE_OFFSET, 1);
}
So, It was breathing with white color.
After that I was going to pair within particle app, I triggered setup mode by holding mode button.
But I am failing to part on mobile app yet.
I am testing on Iphone and Particle app has installed Dec 27th