I’m trying to diagnose the reason a unit is having trouble connecting to an AP and maintaining that connection. In the log obtained from the console site, I see a number device.network.connection.error of 1006 and 1062 which seems to indicate an authentication error with the AP (device-os/wwd_constants.h at develop · particle-iot/device-os · GitHub). However, the unit is occasionally able to successfully connect. I suspect it’s a probably a poor signal (signal strength ranges from -46dBM to -84dBm) although there doesn’t seem to be a correlation between signal strength and connection failure.
I also see device.cloud.connection.error of 10, 25, and 26, but I haven’t been able to find a reference for these errors. A pointer to these errors, or any suggestions/further info would be appreciated.
Errors 10, 25, and 26 are generally timeout-related errors caused by the device not receiving a handshake message. That’s often caused by poor connectivity.
When not during handshake, such as error 18, it can also occur with the Argon (not Photon/P1) if your LAN tears down the UDP port forwarding more quickly than the keep-alive. This can be fixed by setting Particle.keepAlive() to a smaller value. The actual value is site-specific.