1

(4 replies, posted in wolfMQTT)

Hello Eric

after increasing min stack and heap sizes in linker options, debug prints this:

mqtt port 8883
mqtt: broker port is: 8883
>mqtt start
MQTT pub/sub demo has been started
>MQTT Task - Client Start: QoS 0, broker test.mosquitto.org
MQTT Task - run message: WMQTT_NETGlue_Initialize, res: 0
MQTT Task - run message: MqttClient_Init, res: 0
MQTT Task - run message: MqttClient_SetDisconnectCallback, res: 0
WMQTT_NET_GLUE Info: Started Connect
WMQTT_NET_GLUE Info: Connected Successfully
WMQTT_NET_GLUE Info: Start TLS
wolfSSL (2): wolfSSL Entering SSLv23_client_method_ex
wolfSSL (2): wolfSSL Entering wolfSSL_CTX_new_ex
wolfSSL (2): wolfSSL Entering wolfSSL_CertManagerNew
wolfSSL (2): wolfSSL Entering wolfSSL_CTX_set_verify
wolfSSL (2): wolfSSL Entering wolfSSL_CTX_load_verify_buffer_ex
wolfSSL (1): Adding a CA
wolfSSL (2): wolfSSL Entering GetExplicitVersion
wolfSSL (2): wolfSSL Entering wc_GetSerialNumber
wolfSSL (1): Got Cert Header
wolfSSL (2): wolfSSL Entering GetAlgoId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (1): Got Algo ID
wolfSSL (1): Getting Cert Name
wolfSSL (1): Getting Cert Name
wolfSSL (1): Getting Cert Name
wolfSSL (1): Getting Cert Name
wolfSSL (1): Got Subject Name
wolfSSL (2): wolfSSL Entering GetAlgoId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (1): Got Key
wolfSSL (1): Parsed Past Key
wolfSSL (2): wolfSSL Entering DecodeCertExtensions
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeSubjKeyId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeAuthKeyId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeBasicCaConstraint
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeAltNames
wolfSSL (1):    Unsupported name type, skipping
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeExtKeyUsage
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering GetAlgoId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (1):    Parsed new CA
wolfSSL (1):    Freeing Parsed CA
wolfSSL (1):    Freeing der CA
wolfSSL (1):            OK Freeing der CA
wolfSSL (2): wolfSSL Entering SSL_new
wolfSSL (2): wolfSSL Entering SSL_set_fd
wolfSSL (2): wolfSSL Entering SSL_set_read_fd
wolfSSL (2): wolfSSL Entering SSL_set_write_fd
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (2): wolfSSL Entering SendClientHello
wolfSSL (1): growing output buffer
wolfSSL (1): Shrinking output buffer
wolfSSL (1): connect state: CLIENT_HELLO_SENT
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (1): received record layer msg
wolfSSL (1): got ALERT!
wolfSSL (1): Alert type: handshake_failure
wolfSSL (0): wolfSSL error occurred, error = 40
wolfSSL (0): wolfSSL error occurred, error = -313
wolfSSL (2): wolfSSL Entering SSL_get_error
WMQTT_NET_GLUE Error: TLS Negotiation, occurred in func: WMQTT_NETGlue_Connect, line: 326,
MQTT Task - run message: MqttClient_NetConnect, res: -6
wolfSSL (2): wolfSSL Entering SSL_free
wolfSSL (1): Free'ing client ssl
wolfSSL (2): wolfSSL Entering DtlsMsgPoolReset()
wolfSSL (2): wolfSSL Entering ClientSessionToSession
wolfSSL (1): CTX ref count not 0 yet, no free
MQTT Task - MQTT cycle Failed in state: 6, error code: -6!
TCP/IP Stack: Initialization Started
TCP/IP Stack: Heap creation failed, type: 1
TCP/IP Stack: Initialization failed 1 - Aborting!
APP: TCP/IP stack initialization failed!
mqtt port 8883
*** Command Processor: unknown command. ***
>TCP/IP Stack: Initialization Started
TCP/IP Stack: Initialization Ended - success
Created the mqtt Commands
mqtt port 8883
mqtt: broker port is: 8883
>mqtt start
MQTT pub/sub demo has been started
>MQTT Task - Client Start: QoS 0, broker test.mosquitto.org
MQTT Task - run message: WMQTT_NETGlue_Initialize, res: 0
MQTT Task - run message: MqttClient_Init, res: 0
MQTT Task - run message: MqttClient_SetDisconnectCallback, res: 0
WMQTT_NET_GLUE Info: Started Connect
WMQTT_NET_GLUE Info: Connected Successfully
WMQTT_NET_GLUE Info: Start TLS
wolfSSL (2): wolfSSL Entering SSLv23_client_method_ex
wolfSSL (2): wolfSSL Entering wolfSSL_CTX_new_ex
wolfSSL (2): wolfSSL Entering wolfSSL_CertManagerNew
wolfSSL (2): wolfSSL Entering wolfSSL_CTX_set_verify
wolfSSL (2): wolfSSL Entering wolfSSL_CTX_load_verify_buffer_ex
wolfSSL (1): Adding a CA
wolfSSL (2): wolfSSL Entering GetExplicitVersion
wolfSSL (2): wolfSSL Entering wc_GetSerialNumber
wolfSSL (1): Got Cert Header
wolfSSL (2): wolfSSL Entering GetAlgoId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (1): Got Algo ID
wolfSSL (1): Getting Cert Name
wolfSSL (1): Getting Cert Name
wolfSSL (1): Getting Cert Name
wolfSSL (1): Getting Cert Name
wolfSSL (1): Got Subject Name
wolfSSL (2): wolfSSL Entering GetAlgoId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (1): Got Key
wolfSSL (1): Parsed Past Key
wolfSSL (2): wolfSSL Entering DecodeCertExtensions
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeSubjKeyId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeAuthKeyId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeBasicCaConstraint
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeAltNames
wolfSSL (1):    Unsupported name type, skipping
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering DecodeExtKeyUsage
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (2): wolfSSL Entering GetAlgoId
wolfSSL (2): wolfSSL Entering GetObjectId()
wolfSSL (1):    Parsed new CA
wolfSSL (1):    Freeing Parsed CA
wolfSSL (1):    Freeing der CA
wolfSSL (1):            OK Freeing der CA
wolfSSL (2): wolfSSL Entering SSL_new
wolfSSL (2): wolfSSL Entering SSL_set_fd
wolfSSL (2): wolfSSL Entering SSL_set_read_fd
wolfSSL (2): wolfSSL Entering SSL_set_write_fd
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (2): wolfSSL Entering SendClientHello
wolfSSL (1): growing output buffer
wolfSSL (1): Shrinking output buffer
wolfSSL (1): connect state: CLIENT_HELLO_SENT
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (0): wolfSSL error occurred, error = -323
wolfSSL (2): wolfSSL Entering SSL_get_error
wolfSSL (2): wolfSSL Entering SSL_connect()
wolfSSL (1): received record layer msg
wolfSSL (1): got ALERT!
wolfSSL (1): Alert type: handshake_failure
wolfSSL (0): wolfSSL error occurred, error = 40
wolfSSL (0): wolfSSL error occurred, error = -313
wolfSSL (2): wolfSSL Entering SSL_get_error
WMQTT_NET_GLUE Error: TLS Negotiation, occurred in func: WMQTT_NETGlue_Connect, line: 326,
MQTT Task - run message: MqttClient_NetConnect, res: -6
wolfSSL (2): wolfSSL Entering SSL_free
wolfSSL (1): Free'ing client ssl
wolfSSL (2): wolfSSL Entering DtlsMsgPoolReset()
wolfSSL (2): wolfSSL Entering ClientSessionToSession
wolfSSL (1): CTX ref count not 0 yet, no free
MQTT Task - MQTT cycle Failed in state: 6, error code: -6!

Is it useful for extracting useful information?

Thanks in advace

2

(4 replies, posted in wolfMQTT)

Hello everybody

months ago I submitted a post about wolfMQTT in old project with PIC32MZ2048EFM144 and LAN8720, using MPLABX Harmony 2 framework configuration.
After some unsuccessful work, I decided to switch to Harmony 3.

I'm using the custom generated MQTT Application Template. With that, I can connect to test.mosquitto.org in unencrypted, unauthenticated way of communication, using port 1883.

But I cannot connect to this broker in TLS encrypted way, to port 8883, with "MQTT Enable TLS" option in wolfMQTT configuration options both enabled and disabled.

In configuration.h:

/*******************************************************************************
  System Configuration Header

  File Name:
    configuration.h

  Summary:
    Build-time configuration header for the system defined by this project.

  Description:
    An MPLAB Project may have multiple configurations.  This file defines the
    build-time options for a single configuration.

  Remarks:
    This configuration header must not define any prototypes or data
    definitions (or include any files that do).  It only provides macro
    definitions for build-time configuration options

*******************************************************************************/

// DOM-IGNORE-BEGIN
/*******************************************************************************
* Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* responsibility to comply with third party license terms applicable to your
* use of third party software (including open source software) that may
* accompany Microchip software.
*
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
* PARTICULAR PURPOSE.
*
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
* INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
* WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
* BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
* FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
* ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
* THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
*******************************************************************************/
// DOM-IGNORE-END

#ifndef CONFIGURATION_H
#define CONFIGURATION_H

// *****************************************************************************
// *****************************************************************************
// Section: Included Files
// *****************************************************************************
// *****************************************************************************
/*  This section Includes other configuration headers necessary to completely
    define this configuration.
*/

#include "user.h"
#include "device.h"

// DOM-IGNORE-BEGIN
#ifdef __cplusplus  // Provide C++ Compatibility

extern "C" {

#endif
// DOM-IGNORE-END

// *****************************************************************************
// *****************************************************************************
// Section: System Configuration
// *****************************************************************************
// *****************************************************************************



// *****************************************************************************
// *****************************************************************************
// Section: System Service Configuration
// *****************************************************************************
// *****************************************************************************
/* TIME System Service Configuration Options */
#define SYS_TIME_INDEX_0                            (0)
#define SYS_TIME_MAX_TIMERS                         (5)
#define SYS_TIME_HW_COUNTER_WIDTH                   (32)
#define SYS_TIME_TICK_FREQ_IN_HZ                    (1000.16002)

#define SYS_CONSOLE_INDEX_0                       0





#define SYS_CMD_ENABLE
#define SYS_CMD_DEVICE_MAX_INSTANCES       SYS_CONSOLE_DEVICE_MAX_INSTANCES
#define SYS_CMD_PRINT_BUFFER_SIZE          1024U
#define SYS_CMD_BUFFER_DMA_READY



#define SYS_DEBUG_ENABLE
#define SYS_DEBUG_GLOBAL_ERROR_LEVEL       SYS_ERROR_DEBUG
#define SYS_DEBUG_BUFFER_DMA_READY
#define SYS_DEBUG_USE_CONSOLE


#define SYS_CONSOLE_DEVICE_MAX_INSTANCES               (1U)
#define SYS_CONSOLE_UART_MAX_INSTANCES                    (1U)
#define SYS_CONSOLE_USB_CDC_MAX_INSTANCES                (0U)
#define SYS_CONSOLE_PRINT_BUFFER_SIZE                (2048U)




// *****************************************************************************
// *****************************************************************************
// Section: Driver Configuration
// *****************************************************************************
// *****************************************************************************
/*** MIIM Driver Configuration ***/
#define DRV_MIIM_ETH_MODULE_ID_0                _ETH_BASE_ADDRESS
#define DRV_MIIM_DRIVER_INDEX_0                 0
#define DRV_MIIM_INSTANCES_NUMBER           1
#define DRV_MIIM_INSTANCE_OPERATIONS        4
#define DRV_MIIM_INSTANCE_CLIENTS           2
#define DRV_MIIM_CLIENT_OP_PROTECTION   false
#define DRV_MIIM_COMMANDS   true
#define DRV_MIIM_DRIVER_OBJECT              DRV_MIIM_OBJECT_BASE_Default            





// *****************************************************************************
// *****************************************************************************
// Section: Middleware & Other Library Configuration
// *****************************************************************************
// *****************************************************************************


/*** DNS Client Configuration ***/
#define TCPIP_STACK_USE_DNS
#define TCPIP_DNS_CLIENT_SERVER_TMO                    60
#define TCPIP_DNS_CLIENT_TASK_PROCESS_RATE            200
#define TCPIP_DNS_CLIENT_CACHE_ENTRIES                5
#define TCPIP_DNS_CLIENT_CACHE_ENTRY_TMO            0
#define TCPIP_DNS_CLIENT_CACHE_PER_IPV4_ADDRESS        5
#define TCPIP_DNS_CLIENT_CACHE_PER_IPV6_ADDRESS        1
#define TCPIP_DNS_CLIENT_ADDRESS_TYPE                IP_ADDRESS_TYPE_IPV4
#define TCPIP_DNS_CLIENT_CACHE_DEFAULT_TTL_VAL        1200
#define TCPIP_DNS_CLIENT_LOOKUP_RETRY_TMO            2
#define TCPIP_DNS_CLIENT_MAX_HOSTNAME_LEN            64
#define TCPIP_DNS_CLIENT_MAX_SELECT_INTERFACES        4
#define TCPIP_DNS_CLIENT_DELETE_OLD_ENTRIES            true
#define TCPIP_DNS_CLIENT_CONSOLE_CMD                   true
#define TCPIP_DNS_CLIENT_USER_NOTIFICATION   false



/*** wolfMQTT configuration ***/
#define WOLFMQTT_NONBLOCK
#define WOLFMQTT_USER_SETTINGS
// #define WOLFMQTT_NO_TIMEOUT
// #define WOLFMQTT_NO_STDIN_CAP

#define WOLFMQTT_DISCONNECT_CB
#define WOLFMQTT_NO_ERROR_STRINGS
#define WOLFMQTT_NO_STDIO

// #define ENABLE_MQTT_TLS

/*** wolMQTT Net Glue configuration ***/
#define WMQTT_NET_GLUE_FORCE_TLS            true
#define WMQTT_NET_GLUE_IPV6                    false
#define WMQTT_NET_GLUE_MAX_BROKER_NAME        64
#define WMQTT_NET_GLUE_DEBUG_ENABLE            true
#define WMQTT_NET_GLUE_ERROR_STRINGS        true
#define WMQTT_NET_GLUE_MALLOC                malloc
#define WMQTT_NET_GLUE_FREE                    free
#define WMQTT_NET_SKT_TX_BUFF                2048
#define WMQTT_NET_SKT_RX_BUFF                2048






/*** ICMPv4 Server Configuration ***/
#define TCPIP_STACK_USE_ICMP_SERVER
#define TCPIP_ICMP_ECHO_ALLOW_BROADCASTS    false


/******************************************************************************/
/*wolfSSL TLS Layer Configuration*/
/******************************************************************************/

#define WOLFSSL_ALT_NAMES
#define WOLFSSL_DER_LOAD
#define KEEP_OUR_CERT
#define KEEP_PEER_CERT
#define HAVE_CRL_IO
#define HAVE_IO_TIMEOUT
#define TFM_NO_ASM
#define WOLFSSL_NO_ASM
#define SIZEOF_LONG_LONG 8
#define WOLFSSL_USER_IO
#define NO_WRITEV
#define MICROCHIP_TCPIP
#define WOLFSSL_DTLS
#define NO_PWDBASED
#define NO_OLD_TLS

/*** TCPIP MAC Configuration ***/
#define TCPIP_EMAC_TX_DESCRIPTORS                    8
#define TCPIP_EMAC_RX_DESCRIPTORS                    8
#define TCPIP_EMAC_RX_DEDICATED_BUFFERS                4
#define TCPIP_EMAC_RX_INIT_BUFFERS                    0
#define TCPIP_EMAC_RX_LOW_THRESHOLD                    1
#define TCPIP_EMAC_RX_LOW_FILL                        2
#define TCPIP_EMAC_MAX_FRAME                        1536
#define TCPIP_EMAC_LINK_MTU                            1500
#define TCPIP_EMAC_RX_BUFF_SIZE                        1536
#define TCPIP_EMAC_RX_FRAGMENTS                        1

#define TCPIP_EMAC_RX_FILTERS                       \
                                                    TCPIP_MAC_RX_FILTER_TYPE_BCAST_ACCEPT |\
                                                    TCPIP_MAC_RX_FILTER_TYPE_MCAST_ACCEPT |\
                                                    TCPIP_MAC_RX_FILTER_TYPE_UCAST_ACCEPT |\
                                                    TCPIP_MAC_RX_FILTER_TYPE_RUNT_REJECT |\
                                                    TCPIP_MAC_RX_FILTER_TYPE_CRC_ERROR_REJECT |\
                                                    0
#define TCPIP_EMAC_ETH_OPEN_FLAGS                   \
                                                    TCPIP_ETH_OPEN_AUTO |\
                                                    TCPIP_ETH_OPEN_FDUPLEX |\
                                                    TCPIP_ETH_OPEN_HDUPLEX |\
                                                    TCPIP_ETH_OPEN_100 |\
                                                    TCPIP_ETH_OPEN_10 |\
                                                    TCPIP_ETH_OPEN_MDIX_AUTO |\
                                                    0

#define TCPIP_INTMAC_MODULE_ID                        _ETH_BASE_ADDRESS
#define TCPIP_INTMAC_PERIPHERAL_CLK                  100000000

#define DRV_ETHMAC_INTERRUPT_SOURCE                _ETHERNET_VECTOR

#define DRV_ETHMAC_INTERRUPT_MODE                    true

#define TCPIP_EMAC_AUTO_FLOW_CONTROL_ENABLE            true
#define TCPIP_EMAC_FLOW_CONTROL_PAUSE_BYTES         3072
#define TCPIP_EMAC_FLOW_CONTROL_FULL_WMARK          2
#define TCPIP_EMAC_FLOW_CONTROL_EMPTY_WMARK         0



/*** TCP Configuration ***/
#define TCPIP_TCP_MAX_SEG_SIZE_TX                    1460
#define TCPIP_TCP_SOCKET_DEFAULT_TX_SIZE            512
#define TCPIP_TCP_SOCKET_DEFAULT_RX_SIZE            512
#define TCPIP_TCP_DYNAMIC_OPTIONS                         true
#define TCPIP_TCP_START_TIMEOUT_VAL                    1000
#define TCPIP_TCP_DELAYED_ACK_TIMEOUT                    100
#define TCPIP_TCP_FIN_WAIT_2_TIMEOUT                    5000
#define TCPIP_TCP_KEEP_ALIVE_TIMEOUT                    10000
#define TCPIP_TCP_CLOSE_WAIT_TIMEOUT                    0
#define TCPIP_TCP_MAX_RETRIES                            5
#define TCPIP_TCP_MAX_UNACKED_KEEP_ALIVES            6
#define TCPIP_TCP_MAX_SYN_RETRIES                    3
#define TCPIP_TCP_AUTO_TRANSMIT_TIMEOUT_VAL            40
#define TCPIP_TCP_WINDOW_UPDATE_TIMEOUT_VAL            200
#define TCPIP_TCP_MAX_SOCKETS                        10
#define TCPIP_TCP_TASK_TICK_RATE                    5
#define TCPIP_TCP_MSL_TIMEOUT                        0
#define TCPIP_TCP_QUIET_TIME                        0
#define TCPIP_TCP_COMMANDS   true
#define TCPIP_TCP_EXTERN_PACKET_PROCESS   false
#define TCPIP_TCP_DISABLE_CRYPTO_USAGE                        true



/*** DHCP Configuration ***/
#define TCPIP_STACK_USE_DHCP_CLIENT
#define TCPIP_DHCP_TIMEOUT                          2
#define TCPIP_DHCP_TASK_TICK_RATE                   5
#define TCPIP_DHCP_HOST_NAME_SIZE                   20
#define TCPIP_DHCP_CLIENT_CONNECT_PORT              68
#define TCPIP_DHCP_SERVER_LISTEN_PORT               67
#define TCPIP_DHCP_CLIENT_CONSOLE_CMD               true

#define TCPIP_DHCP_USE_OPTION_TIME_SERVER           0
#define TCPIP_DHCP_TIME_SERVER_ADDRESSES            0
#define TCPIP_DHCP_USE_OPTION_NTP_SERVER            0
#define TCPIP_DHCP_NTP_SERVER_ADDRESSES             0
#define TCPIP_DHCP_ARP_LEASE_CHECK_TMO              1000
#define TCPIP_DHCP_WAIT_ARP_FAIL_CHECK_TMO          10



/*** ARP Configuration ***/
#define TCPIP_ARP_CACHE_ENTRIES                         5
#define TCPIP_ARP_CACHE_DELETE_OLD                    true
#define TCPIP_ARP_CACHE_SOLVED_ENTRY_TMO            1200
#define TCPIP_ARP_CACHE_PENDING_ENTRY_TMO            60
#define TCPIP_ARP_CACHE_PENDING_RETRY_TMO            2
#define TCPIP_ARP_CACHE_PERMANENT_QUOTA                    50
#define TCPIP_ARP_CACHE_PURGE_THRESHOLD                    75
#define TCPIP_ARP_CACHE_PURGE_QUANTA                    1
#define TCPIP_ARP_CACHE_ENTRY_RETRIES                    3
#define TCPIP_ARP_GRATUITOUS_PROBE_COUNT            1
#define TCPIP_ARP_TASK_PROCESS_RATE                    2000
#define TCPIP_ARP_PRIMARY_CACHE_ONLY                    true
#define TCPIP_ARP_COMMANDS false



    /*** tcpip_cmd Configuration ***/
    #define TCPIP_STACK_COMMAND_ENABLE
        #define TCPIP_STACK_COMMANDS_STORAGE_ENABLE



/* Network Configuration Index 0 */
#define TCPIP_NETWORK_DEFAULT_INTERFACE_NAME_IDX0 "ETHMAC"
#define TCPIP_IF_ETHMAC

#define TCPIP_NETWORK_DEFAULT_HOST_NAME_IDX0              "KIRA01"
#define TCPIP_NETWORK_DEFAULT_MAC_ADDR_IDX0               0

#define TCPIP_NETWORK_DEFAULT_IP_ADDRESS_IDX0         "192.168.0.115"
#define TCPIP_NETWORK_DEFAULT_IP_MASK_IDX0            "255.255.255.0"
#define TCPIP_NETWORK_DEFAULT_GATEWAY_IDX0            "192.168.0.1"
#define TCPIP_NETWORK_DEFAULT_DNS_IDX0                "192.168.0.1"
#define TCPIP_NETWORK_DEFAULT_SECOND_DNS_IDX0         "0.0.0.0"
#define TCPIP_NETWORK_DEFAULT_POWER_MODE_IDX0         "full"
#define TCPIP_NETWORK_DEFAULT_INTERFACE_FLAGS_IDX0            \
                                                    TCPIP_NETWORK_CONFIG_DHCP_CLIENT_ON |\
                                                    TCPIP_NETWORK_CONFIG_DNS_CLIENT_ON |\
                                                    TCPIP_NETWORK_CONFIG_MULTICAST_ON |\
                                                    TCPIP_NETWORK_CONFIG_IP_STATIC
                                                    
#define TCPIP_NETWORK_DEFAULT_MAC_DRIVER_IDX0         DRV_ETHMAC_PIC32MACObject



/*** IPv4 Configuration ***/
#define TCPIP_IPV4_ARP_SLOTS                        10
#define TCPIP_IPV4_EXTERN_PACKET_PROCESS   false

#define TCPIP_IPV4_COMMANDS true

#define TCPIP_IPV4_FORWARDING_ENABLE    false





/*** TCPIP Heap Configuration ***/
#define TCPIP_STACK_USE_INTERNAL_HEAP
#define TCPIP_STACK_DRAM_SIZE                       39250
#define TCPIP_STACK_DRAM_RUN_LIMIT                  2048

#define TCPIP_STACK_MALLOC_FUNC                     malloc

#define TCPIP_STACK_CALLOC_FUNC                     calloc

#define TCPIP_STACK_FREE_FUNC                       free



#define TCPIP_STACK_HEAP_USE_FLAGS                   TCPIP_STACK_HEAP_FLAG_ALLOC_UNCACHED

#define TCPIP_STACK_HEAP_USAGE_CONFIG                TCPIP_STACK_HEAP_USE_DEFAULT

#define TCPIP_STACK_SUPPORTED_HEAPS                  1




// *****************************************************************************
// *****************************************************************************
// Section: TCPIP Stack Configuration
// *****************************************************************************
// *****************************************************************************

#define TCPIP_STACK_USE_IPV4
#define TCPIP_STACK_USE_TCP
#define TCPIP_STACK_USE_UDP

#define TCPIP_STACK_TICK_RATE                        5
#define TCPIP_STACK_SECURE_PORT_ENTRIES             10
#define TCPIP_STACK_LINK_RATE                        333

#define TCPIP_STACK_ALIAS_INTERFACE_SUPPORT   false

#define TCPIP_PACKET_LOG_ENABLE     0

/* TCP/IP stack event notification */
#define TCPIP_STACK_USE_EVENT_NOTIFICATION
#define TCPIP_STACK_USER_NOTIFICATION   false
#define TCPIP_STACK_DOWN_OPERATION   true
#define TCPIP_STACK_IF_UP_DOWN_OPERATION   true
#define TCPIP_STACK_MAC_DOWN_OPERATION  true
#define TCPIP_STACK_INTERFACE_CHANGE_SIGNALING   false
#define TCPIP_STACK_CONFIGURATION_SAVE_RESTORE   true
#define TCPIP_STACK_EXTERN_PACKET_PROCESS   false
#define TCPIP_STACK_RUN_TIME_INIT   false

#define TCPIP_STACK_INTMAC_COUNT           1






/*** SNTP Configuration ***/
#define TCPIP_STACK_USE_SNTP_CLIENT
#define TCPIP_NTP_DEFAULT_IF                    "ETHMAC"
#define TCPIP_NTP_VERSION                         4
#define TCPIP_NTP_DEFAULT_CONNECTION_TYPE       IP_ADDRESS_TYPE_IPV4
#define TCPIP_NTP_EPOCH                            2208988800ul
#define TCPIP_NTP_REPLY_TIMEOUT                    6
#define TCPIP_NTP_MAX_STRATUM                    15
#define TCPIP_NTP_TIME_STAMP_TMO                660
#define TCPIP_NTP_SERVER                        "pool.ntp.org"
#define TCPIP_NTP_SERVER_MAX_LENGTH                30
#define TCPIP_NTP_QUERY_INTERVAL                600
#define TCPIP_NTP_FAST_QUERY_INTERVAL            14
#define TCPIP_NTP_TASK_TICK_RATE                1100
#define TCPIP_NTP_RX_QUEUE_LIMIT                2



/*** UDP Configuration ***/
#define TCPIP_UDP_MAX_SOCKETS                            10
#define TCPIP_UDP_SOCKET_DEFAULT_TX_SIZE                512
#define TCPIP_UDP_SOCKET_DEFAULT_TX_QUEUE_LIMIT             3
#define TCPIP_UDP_SOCKET_DEFAULT_RX_QUEUE_LIMIT            3
#define TCPIP_UDP_USE_POOL_BUFFERS   false
#define TCPIP_UDP_USE_TX_CHECKSUM                         true
#define TCPIP_UDP_USE_RX_CHECKSUM                         true
#define TCPIP_UDP_COMMANDS   true
#define TCPIP_UDP_EXTERN_PACKET_PROCESS   false


#define DRV_LAN8720_PHY_CONFIG_FLAGS       ( 0 \
                                                    | DRV_ETHPHY_CFG_AUTO \
                                                    )
                                                    
#define DRV_LAN8720_PHY_LINK_INIT_DELAY            500
#define DRV_LAN8720_PHY_ADDRESS                    0
#define DRV_LAN8720_PHY_PERIPHERAL_ID              _ETH_BASE_ADDRESS
#define DRV_ETHPHY_LAN8720_NEG_INIT_TMO            1
#define DRV_ETHPHY_LAN8720_NEG_DONE_TMO            2000
#define DRV_ETHPHY_LAN8720_RESET_CLR_TMO           500



/*** wolfCrypt Library Configuration ***/
#define MICROCHIP_PIC32
#define MICROCHIP_MPLAB_HARMONY
#define MICROCHIP_MPLAB_HARMONY_3
#define HAVE_MCAPI
#define SIZEOF_LONG_LONG 8
#define WOLFSSL_USER_IO
#define NO_WRITEV
#define NO_FILESYSTEM
#define USE_FAST_MATH
#define NO_PWDBASED
#define HAVE_MCAPI
#define WOLF_CRYPTO_CB  // provide call-back support
#if (__XC32_VERSION > 100000000)
#define WOLFSSL_HAVE_MIN
#define WOLFSSL_HAVE_MAX
#endif
#undef WOLFSSL_HAVE_MIN
#undef WOLFSSL_HAVE_MAX
// ---------- FUNCTIONAL CONFIGURATION START ----------
#define WOLFSSL_AES_SMALL_TABLES
#define NO_MD4
#define WOLFSSL_SHA224
#define WOLFSSL_AES_128
#define WOLFSSL_AES_192
#define WOLFSSL_AES_256
#define WOLFSSL_AES_DIRECT
#define HAVE_AES_DECRYPT
#define HAVE_AES_ECB
#define HAVE_AES_CBC
#define WOLFSSL_AES_COUNTER
#define WOLFSSL_AES_OFB
#define HAVE_AESGCM
#define HAVE_AESCCM
#define NO_RC4
#define NO_HC128
#define NO_RABBIT
#define HAVE_ECC
#define NO_DH
#define NO_DSA
#define FP_MAX_BITS 4096
#define USE_CERT_BUFFERS_2048
#define NO_DEV_RANDOM
#define HAVE_HASHDRBG
#define WC_NO_HARDEN
#define SINGLE_THREADED
#define NO_SIG_WRAPPER
#define NO_WOLFSSL_MEMORY
#define DEBUG
#define DEBUG_WOLFSSL
// ---------- FUNCTIONAL CONFIGURATION END ----------

/* MPLAB Harmony Net Presentation Layer Definitions*/
#define NET_PRES_NUM_INSTANCE 1
#define NET_PRES_NUM_SOCKETS 10



#define TCPIP_STACK_NETWORK_INTERAFCE_COUNT      1







// *****************************************************************************
// *****************************************************************************
// Section: Application Configuration
// *****************************************************************************
// *****************************************************************************


//DOM-IGNORE-BEGIN
#ifdef __cplusplus
}
#endif
//DOM-IGNORE-END

#endif // CONFIGURATION_H
/*******************************************************************************
 End of File
*/

Console prints this:

>mqtt start
MQTT pub/sub demo has been started
>MQTT Task - Client Start: QoS 0, broker test.mosquitto.org
MQTT Task - run message: WMQTT_NETGlue_Initialize, res: 0
MQTT Task - run message: MqttClient_Init, res: 0
MQTT Task - run message: MqttClient_SetDisconnectCallback, res: 0
WMQTT_NET_GLUE Info: Started Connect
WMQTT_NET_GLUE Info: Connected Successfully
WMQTT_NET_GLUE Info: Start TLS
wolfSSL (2): wolfSSL Entering SSL_new
WMQTT_NET_GLUE Error: TLS Negotiation, occurred in func: WMQTT_NETGlue_Connect, line: 326,
MQTT Task - run message: MqttClient_NetConnect, res: -6
wolfSSL (2): wolfSSL Entering SSL_free
MQTT Task - MQTT cycle Failed in state: 6, error code: -6!

Can anyone suggest me something for encrypted connection to MQTT broker?

Thanks in advance.

3

(3 replies, posted in wolfMQTT)

Hello Kareem

Microchip Harmony 2.05.01 provided to me wolfSSL 3.12.0 and wolfMQTT 0.10.

Including those versions with Harmony GUI, build fails because It cannot find many of requested files. I think harmony fails in copying some files in my project.

I can add many of this file manually by searching in Harmony installation path, but not all files.

Due to this, and the exixtance of newer versions of the wolf libraries,I'd like to find alternative way of integration in my bare metal project.

Thanks in advance

4

(3 replies, posted in wolfMQTT)

Hello everybody

I need to integrate MQTT(and its required SSL) in a board with PIC32MZ2048EFM144, with TCP/IP stack from Microchip Harmony 2.05.01, running a years old validated bare metal firmware compiled with XC32 compiler v1.44.
Using wolfMQTT and wolfSSL from this version of Harmony doesn't work because lacks many files and the project build fails.
I cannot use Harmony 3 for many reasons because this involve the entire process of validation of existing, extending the developement time.
So I need to download a valid version of wolfMQTT and wolfSSL and relative docs(with a working example if possible) to evaluate the possibility of this integration.

Which are the correct steps to integrate those libraries?
Are there useful links that can help me for this work?


Thanks in advance to all.