kyberpunk / openthread-mqttsn

This repository contains examples using MQTT-SN client implementation for Thread network based on OpenThread SDK.
BSD 3-Clause "New" or "Revised" License
30 stars 4 forks source link

How to build examples? #24

Open nikolac opened 2 years ago

nikolac commented 2 years ago

First of all, thank you for all of the great work you've done. Of all the Nordic sdk examples, other tutorials, your MQTTSN over docker is the only example that I've been able to get to working consistently.

I was hoping to explore your SED mqttsn cpp example, but I'm not exactly sure what the build and flash process is. For context, I'm using the NRF52840 dongles (PCA10059).

I tried a few shots in the dark: make/cmake from the openthread/src directory, gcc the .cpp, but the build references seem off. Not sure what the build context is supposed to be.

kyberpunk commented 2 years ago

Hi @nikolac. Unfortunately, I don't have easy answer for you. You could follow these options:

Also keep in mind that examples were tested with this reference of my OpenThread fork with MQTT-SN feature: https://github.com/kyberpunk/openthread/tree/ac5d8364a6d3cf479409d261efb162091e276dd0. It could work also with latest master, but OpenThread API may have changed slightly.

nikolac commented 2 years ago

Thanks for the info, solid options. I will play around and post an update for closure.

ajlennon commented 1 year ago

Thanks will give it a go

ajlennon commented 1 year ago

I've put some code to build a publication example in a fork here @kyberpunk. Am in the middle of soak testing but happy to provide a PR if you're interested

https://github.com/DynamicDevices/openthread/tree/ajl/adding-examples

kyberpunk commented 1 year ago

Hi @ajlennon thanks, will check it.