Join SPI and IPv6 over BLE

Hello!

I have the board PCA10040 (nRF52 DK).

I designed two different programs:

  • SPI: I'm using the SPI communication to communicate with an external sensor (accelerometer). I used the latest SDK version: v13.0.0.
  • MQTT publisher/subscriber: I modified the MQTT publisher example to add the subscriber too. So, the IoT SDK was used (v0.9.0).

The goal now is to integrate both programs in order to send the information of the accelerometer through the MQTT. I'm facing some problems:

  1. The structure of the Makefile is completely different, so I decided to use the IoT one to add the missing directories from the SDK v13.0.0. Is that correct?
  2. The files in IoT SDK are outdated. I tried copying the new libraries in the program, but then the "lwip" external library is having errors since the functions have been changed.

May you help me please? Are there any steps or guidelines I can follow to integrate both programs?

Thank you very much!

  • I tried copying the new libraries in the program, but then the "lwip" external library is having errors since the functions have been changed.

    What do you mean by this? I don't understand.

  • It means that the external library "lwip" is using functions of the outdated libraries such as "app_timer.h". Therefore, if I update the libraries of the IoT SDK (v0.9.0) with the ones of the SDK (v13.0.0), there are some functions of the "lwip" that doesn't work.

    Now, I'm trying to modify some functions of the "lwip" in order to support the updated libraries.

    I hope that I clarified my problem.

    Thanks!

    1. Yes, you can do that.
    2. Then you must either use the old libraries or modify the outdated to work with the new libraries.

    I'm sorry, there doesn't exist and steps or guidelines to do the integration of the IoT SDK with the normal SDK.