An example of an Aquila 2.0 MQTT-SN client implementation for the Altair development board, designed to work with Aquila MQTT-SN Gateway.
For compiling and uploading this code to the board you need the PlatformIO tools and the PlatformIO IDE.
First, clone this repo with all its submodules:
git clone --recursive https://github.com/Rodmg/altair-mqtt-sn-client-example.git
Open the project folder from the Atom IDE with PlatformIO IDE plugin installed, connect your board and press the upload button.
Use a serial monitor to see the program output.
Read and edit src/main.ino
. I hope the comments are enough for understanding the basic MQTT-SN functionality.