In default AUTOMATIC mode you code will not run while the connection is not stable.
You can add SYSTEM_THREAD(ENABLED) at the top of your code to decouple your code from the cloud connection.
But i do not understand why i have a unstable connection. The argon and xenon is next to eachother.
I have tried to google some troubleshooting about this but cant find much about fast blinking cyan light on Xenon unit. Do it mean that its the mesh network that is unstable or the argon connection over wifi?
The xenon do not have a antenna but all guides i have seen about xenon they dont use an antenna, and i guess it should not be needed when they are so close to eachother.
I tried to publish a variable on the xenon to see if i could se it on particle cloud but it dident work.
when i published a variable on the argon it worked, so i bet i have some issues with the mesh network.
In the particle cloud i can see both unit and that they are connected to the created mesh network, i can see that it was just a few seconds ago they last handshaked. in the particle app on IOS everything also seems to be stable and nice.
Some forum threads about electron talks about key issues but as i understand this was pri version 1 and not sure its the same for a mesh network.
I had exactly the same problem last week with a brand new Xenon. It turned out that the private key (?) was corrupted, Particle support was able to help me get the key reset and then set up the Xenon using the CLI.
When close together, 15 feet indoors, no mesh antenna needed, by my experience with an argon and xenon.
I had mesh issues when I changed the wifi networks. I had to create a new mesh network to make it connect finally.
I also had firmware issues when the new version came out and had to flash it with the CLI.
You might want to try a slower baud rate as well. Historically the higher the baud rate the more issues there were likely to be with serial communications.
Also, you have to make sure to close your serial monitoring program before flashing, I kept having that
@scrounger crounger I will have a go to see if the Key have been corrupted, i have seen some threads on the forum about that however that should have been fixed in earlier patches if if my memory serves me right. Do you happen to have a walkthru about how you did to fix the problem?
@jwheasi Thank you for the distant information. I have flashed with a new firmware but not with the CLI,i simply did a firmware reset by the button on the Xenon and then with the iphone app installed the latest firmware. Is it different doing it by CLI?
By setting the devices to DFU and by the help of particle CLI i runned this commands
Place a device in DFU Mode and connect it to your computer.
Open your Terminal or Command Line and run: particle update.
Then, run: particle flash --usb tinker.
After that i installed my own code again and things started to work.