Every time I restart the device or flash new application firmware, the device goes into ‘Listening Mode (blinking blue)’. I have empty setup() and loop() method. After some troubleshooting, it appears there is an issue with the WiFi connection functionality. While the device is blinking blue, I run ‘particle serial wifi’ to setup WiFi connection. The device restarts and connects to my WiFi and Particle Cloud (I see the Console Events). But, once I flash new application firmware, the device restarts and gets stuck in ‘Listening Mode’ again (waited many minutes). I re-run process to enter ‘particle serial wifi’ and enter WiFi settings/credentials again. Device connects again, but I must repeat this each time I flash new code.
I have tried with DeviceOS 1.5.2, 1.5.4-rc1, 2.0.0-rc2.
I have also tried to manually set WiFi in setup() method. I’ve set SYSTEM_MODE(MANUAL) and then followed documentation to https://docs.particle.io/reference/device-os/firmware/argon/#setcredentials- to manually set the WiFi credentials and then connect the WiFi. But this is where it gets stuck in ‘Listening Mode’ again. It never connects correctly.