Thanks for the answer, I had pretty much the same solution but could not get it to work. I noticed that wifiService was also crashing because i had no SSID. After removing that app I was able to find a “workaround”, but maybe you could clarify or give a solution.
When I am launching my MQTT app I need to put in a delay (sleep) for dcsDaemon to run:
dcsDaemon/le_pa_dcs T=main | pa_dcs_general.c AddNameserversToResolvConf() 305 | Set DNS ‘188.8.131.52’ '184.108.40.206’
When this happens, the application has connection and works fine.
So right now my workaround is havin a small delay before checking “LE_FATAL_IF(mqtt_Connect(mqttSession) != LE_OK, “Connection failed”);”. Thank you!