We are seeing persistent ssl handshake errors running deviceOS 1.3.0-rc.1 and using MQT-TLS library version 0.2.20. The device will attempt to connect to the cloud generating handshake errors. When I flash the tinker app onto the board I do not run into this issue.
The program is running with SYSTEM_THREAD(ENABLED).
This issue occurs whenever we call particle.connect(). Yes, I am sure I am connected to WiFi and NOT connected to particle when the call is made.
I have changed the keys for the device. This fixes it for the first try, but then fails if the power is removed, on the next try.
Anybody have this issue happening with a solution?
What board are you using? You say you’re using MQTT-TLS, but talking about connecting with the Particle cloud. Which are you doing, or are you connecting to both Particle cloud and an MQTT broker?
I will say that I have seen errors recently on Boron LTE with MQTT-TLS and 1.3.0-rc.1 (SOS, 1 flash) that I don’t see with 1.2.1. I haven’t done enough investigation yet though to call it a firmware problem. Very likely could be my code.
I have tried a variety of things like removing the MQTT-TLS library from the code, this did not solve the problem.
I enabled the debug messages and flashed tinker to the board. The tinker firmware connected to the cloud successfully on the first try and subsequent tries if I pressed the reset button. When I pulled the power cord, the first connection ended with the same restoreStatus=2.
I then loaded @rickkas7 photon-clouddebug code for the argon. The code loop through the following debug messages 6 times.