MQTT-SN and OpenThread with Zephyr

Hi everyone,

I am trying to combine openthread and mqtt-sn over zephyr. I have been able to run the openthread cli and mqtt-sn examples provided in the "nrf sdk for thread and zigbee". now I need to utilize zephyr and combine both openthread and mqtt-sn. I am wondering if anyone has tried this before? any help would be much appreciated.

Regards,

shan

  • Hi Shan, 
    The mqtt-sn in "nrf sdk for thread and zigbee" is not based on Zephyr. So it can be tricky to run it in Zephyr. 
    So what you need to do is to rewrite the example based on a Zephyr example. I don't have much insight on how mqtt-sn works but should it be possible to convert a mqtt sample in Zephyr to mqttsn ? I see some protocol documentation here. There is an example here. But I don't think it's using Thread. 

    After you have a thread mqtt-sn application working in Zephyr you can think of combining with CLI. As far as I know it is quite simple to do so, just need to add 

    CONFIG_SHELL=y
    CONFIG_OPENTHREAD_SHELL=y
    into the pfj.conf to enable CLI via shell. 

    Please see the nrf\openthread\coap_server sample. 
Related