We were troubleshooting for device disconnection in one of our photons having system firmware 0.8.0-rc11. There was a WICED error in network errors with error code 1006. From the forum, we could find out it is a authentication failed trying to connect to the Access Point.
What does it actually means? The WiFi has good strength. We couldn’t check the router logs as it is in our customer’s home.
The offline event is only generated in an orderly disconnect of the device. If the device is powered down suddenly, or in certain types of crashes, it may only report the next online.
When the AP is out of range, WICED will typically return error code 1024, and 1006 may get reported intermittently if the device is at the edge of the range. I wasn’t able to reproduce the situation in which a Photon would be constantly failing to join a network with the error 1006, except the following two cases:
The device is blocked by MAC in AP settings.
There’s not enough memory for WICED to start the connection process.
It is a known issue that 0.8.0-rc.11 requires significantly more memory to establish a WiFi connection, we’re going to address it in the upcoming release: https://github.com/particle-iot/firmware/pull/1635.