This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to implement the mqtt client (IoT SDK) with IPv4 instead of lwip.

I am implementing mqtt client on Nrf52832 with the example provided in the IoT SDK. I am looking for the correct way to make the client to run with Non-Nordic socket stack. The details of my problem is in the following.

I am using nrf52832 with a wifi chip from another vendors. I have ported the wifi module and using the wifi APIs to do the wifi and IP jobs. Now I can connect to the wifi AP and obtain the IP address from the nordic mcu. Now it is time to implement the MQTT client. I am going to use the MQTT client example in nRF5 IoT SDK v0.9.0, because we want to make use of the TSL 1.2 which has been implemented with the client.

The problem is, the Nordic example works with Lwip, while I want to let it work with the socket stack provided by the WiFi chip, which is IPv4. With the help of Doxygen, I generated a system diagram as below. My plan is to replace the contents in the red square with Atmel APIs. Then my questions is: To transplant mqtt from lwip onto 'normal' IPv4 stack, should I keep any other files and only change 'mqtt_transport.c'?

image description Thanks!

Related