Hello,
Does anyone has an example of MQTT LST application for nrf9160.
I've tried to use the MQTT_Simple sample with LST.
I've add "CONFIG_MQTT_LIB_TLS=y" change the port to "test.mosquitto.org:8883" and add the client settings.
client->password = &password; // Add here client->user_name = &user_name; // Add here /* MQTT transport configuration *//* MODIFIED HERE */ #if defined(CONFIG_MQTT_LIB_TLS) client->transport.type = MQTT_TRANSPORT_SECURE; client->transport.tls.config.peer_verify = 0; client->transport.tls.config.cipher_count = 0; client->transport.tls.config.cipher_list = NULL; client->transport.tls.config.sec_tag_count = 0; client->transport.tls.config.hostname = NULL; #else client->transport.type = MQTT_TRANSPORT_NON_SECURE; #endif
But I don't know where and how to use the different certificate.