I am running WICED 3.5.2 on a Particle Photon and every time that I try to do an MQTT Connect (to broker: AWS IoT) I get a TLS_ERROR_UNEXPECTED_MESSAGE returned from ssl_handshake_client_async(). Since, that function is closed source I cannot debug any further.
The name of the error seems to me to be an issue with the protocol.... Or could this be poorly named and be an issue with my certificates or private key?
Do you replace the Root CA of your MQTT server when call wiced_tls_init_root_ca_certificates() ?
And install correct certificate and private key (without encrypted key) when call wiced_tls_init_identity()