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:
- 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?
- 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!