Hello,
I'm using the mqtt_simple example with the following changes to add WebSockets Secure Support:
Also I set the Application MQTT topics, clientId, host, port and everything using the CONFIG.
The only change I made in the code was this:
The issue is that our Amazon AWS IoT broker url is very long, exactly 1.681 bytes, this is because Amazon give us a url with the token and all the credentials embedded in the url. When I run the code I'm seeing a ENOMEM (-12) when calling the mqtt_connect function.
This is the log:
I was able to debug the error to the following function in mqtt_transport_socket_tls.c
So my question is how I can somehow increase the memory that the setsockopt function uses when setting the hostname on the socket.
I already tested increasing the main stack and heap memory using the CONFIG with no luck.
Btw I'm using NCS v1.4.0 and modem fw 1.2.3.
Any help will be appreciated.
Thanks!