MQTT with TLS, following L4_e2_sol example

Hi,

I am following example to connect using TLS.

I am not polling, as in the example. Should I expect that after 

mqtt_connect, to be called in the callback?
mqtt_connect does not return error.
Best Regards
  • Yes, in effect my question is if I need to poll the socket.
    This way it is not an alternative to mqtt helper library.
    Unfortunately it is so difficult to set up mqtt helper to work in TLS(((

    Thanks

  • Did you add the poll() logic and the rest of the main-loop implementation? This is required in order for the socket data to be retrieved.

     

    Kind regards,

    Håkon

  • Hi 

    Thanks for your reply.

    Actually I was using mqtt helper and it is a great library.  Unfortunately to pass to tls communication, it is because I am not very able, I did not understand the samples/net/mqtt to move mqtt helper to tls. So I started with l4_e2.

    But i do not want to poll the socket. So I go back to mqtt helper and try to understand how to move to tls.

    I close this ticket.  Will probably open another on mqtt helper.

    Best regards 

1 2