This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MQTT over TLS with W5500 SPI Ethernet controller

Dear All,

I am using the nRF52832 in conjunction with a W5500 SPI-Ethernet controller by WizNet. I already implemented a TCP server, a DHCP client and an MQTT client by simply using the provided libraries from WizNet, all connecting vie Ethernet to the Internet.

Now I need to get MQTT to use TLS rather than normal sockets, because I need to verify the identity of the broker as well as providing encryption and hashing. However WizNet does not provide TLS functionality "out of the box", so I think I will have to consider other solutions.

I have seen that the Nordic SDK provides a native mqtt implementation, with a number of possible transports among which TLS. I would like to ditch the MQTT API from WizNet and use the one from Nordic with TLS. I need to make the TLS transport use the WizNet socket API to communicate over my W5500. Can this be done? Can I simply register W5500 socket functions as callbacks for the nordic TLS layer (as found in tls_interface.c)?

Thank you very much,

V.

Related