Other Parts Discussed in Thread: MSP432E401Y
Hello Everyone,
I am using Tiva tm4c1294kcpdt NO RTOS. I have tested non secure mqtt client using lwip on mosquitto broker. It works fine.
Now I want to implement secure mqtt i.e. mqtt/tls using mbedtls through lwip raw api functions. I got below link of github for the same & I tried to implement in same way:
But in this, I got the errors while initialising TLS as below:
1. undefined threading_mutex_init_pthread, threading_mutex_free_pthread, threading_mutex_lock_pthread, threading_mutex_unlock_pthread
2. If I comment this line, then "mbedtls_ctr_drbg_seed" function returns me an error
3. When I try to connect to mosquitto broker using "mqtt_client_connect()" function then it gives me "mqtt_tcp_connect_cb()" connection callback but after that lwip stack calls "mqtt_close()" function with error code 'MQTT_CONNECT_REFUSED_PROTOCOL_VERSION'.
Any help is appreciated.