Hi,
in Cellular Iot Fundamentals there is in lesson 4 an exercise to move to MQTT with TLS.
As I used MQTT helper library, I wonder if it is enough to modify the structure
Hi,
in Cellular Iot Fundamentals there is in lesson 4 an exercise to move to MQTT with TLS.
As I used MQTT helper library, I wonder if it is enough to modify the structure
Hi,
.hostname = CONFIG_MQTT_BROKER_HOSTNAME,.port = CONFIG_MQTT_BROKER_PORT,.transport.type = MQTT_TRANSPORT_SECURE,.transport.tls.sec_tag = CONFIG_MQTT_TLS_SEC_TAG,.transport.tls.hostname = CONFIG_MQTT_BROKER_HOSTNAME,.transport.tls.peer_verify = TLS_PEER_VERIFY_REQUIRED,
The struct "mqtt_helper_conn_params" does not hold those members. This is the way to do it if you use the mqtt library directly.
For the net/mqtt sample documentation, see here:
https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/mqtt/doc/description.html
And the linked documentation for changing mqtt broker:
Kind regards,
Håkon
Probably it is better if I change my code to the l4 example. The samples/net/mqtt is not so clear for me.
Please tell me , if I only publish and subscribe, is it necessary to call
fds_init(&client,&fds);
Thanks
Hi,
There's a bit more than that. You can have a peek at the solution if you want:
Kind regards,
Håkon
Hi,
There's a bit more than that. You can have a peek at the solution if you want:
Kind regards,
Håkon
Yes, it is perfect.
I am importing this code but why I cannot define
CONFIG_MQTT_BROKER_HOSTNAME in my prj file?
I am using actinius icarus board v2.
Thanks
Hi,
If you share a log, it will be easier to understand what is happening. Can you share the full output?
Kind regards,
Håkon
Hi.
Sorry, I am trying to import code of v2.8.x-v2.7.0\l4\l4_e2_sol example in a cpp project but it neds the
library for getaddrinfo, addrinfo,inet_ntop,freeaddrinfo.
Hi,
Please share your error output.
the bsd socket interface shall be included with this:
Marbro1965 said:#include <zephyr/net/socket.h>
including getaddrinfo().
Kind regards,
Håkon
Sorry, I have a lot of red squiggles. But In effect the program compiles.
Thanks very much.
Really I am getting crazy with this red squiggles.