1

Join SPI and IPv6 over BLE

gimc gravatar image

asked 2017-05-19 13:20:02 +0100

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!

edit retag flag offensive close delete report spam

Comments

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.

Petter Myhre ( 2017-05-22 10:42:00 +0100 )editconvert to answer

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!

gimc ( 2017-05-22 10:51:40 +0100 )editconvert to answer

1 answer

Sort by ยป oldest newest most voted
0
Petter gravatar image

answered 2017-05-22 11:02:10 +0100

  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.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools

1 follower

Stats

Asked: 2017-05-19 13:20:02 +0100

Seen: 75 times

Last updated: mai 22