Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MQTT example - multiple clients

Hi community,

I have a problem establishing a connection with more than one device in the MQTT client example (MQTT/6LoWPAN/BLE). I'm using:

  • SDK v15.3.0 (also nRF5 SDK v15.2.0).
  • Raspberry Pi 3 (as a border router - stretch); Linux kernel > 4.12.
  • Mosquitto (as MQTT broker).
  • PCA10040 (nRF52832) as a MQTT subscriber or publisher (I have 2 boards).
  • SEGGER Embedded Studio for ARM 4.12.


Since nRF5 SDK v14.1.0 until nRF5 SDK v15.2.0, in the release notes ("Known Issues" section) it says:

"There are some issues when using the IoT examples against Linux Kernel 4.12+ that cause the kernel to only work with one 6LoWPAN connection. If more than one kit is connected using 6LoWPAN, none of the nodes will be accessible."

On the other hand, in the nRF5 SDK v15.3.0 release notes there's no information about that issue. Then I tried, but still can't achieve the connection with 2 MQTT clients at the same time. When I connect both device (as publisher and other as subscriber), both boards freeze with the LED 1 in mode ON (after the advertising event).

For today date, there is any solution related to this problem?
Perhaps in the nRF5 SDK v15.3.0 this problem was patched and I'm making something wrong?

Please, give me a hand with this issue.
Best regards,

Cisco.

Related