mqtt_lora_thingsboard

Dependencies:   HTS221 VL53L0X BSP_B-L475E-IOT01 MQTT

Committer:
cornetlin
Date:
Sat Jan 04 16:47:24 2020 +0000
Revision:
3:a21eb3abb874
Parent:
0:8d0ccf7acecd
WIFI+MQTT+LORA

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JunkoNakajima 0:8d0ccf7acecd 1 ## Introduction
JunkoNakajima 0:8d0ccf7acecd 2 This example demonstrates how to use the Treasure Data REST API to send data from mbed OS to Treasure Data. In this example we will grab device information on the CPU, Heap, Stack and System information and forward it on to treasure data to log.
JunkoNakajima 0:8d0ccf7acecd 3
JunkoNakajima 0:8d0ccf7acecd 4 ## Pre-Requisites
JunkoNakajima 0:8d0ccf7acecd 5 - Treasure Data Account
JunkoNakajima 0:8d0ccf7acecd 6 - Treasure Data REST API Key
JunkoNakajima 0:8d0ccf7acecd 7 - Mbed OS Account
JunkoNakajima 0:8d0ccf7acecd 8
JunkoNakajima 0:8d0ccf7acecd 9
JunkoNakajima 0:8d0ccf7acecd 10 ## How to use
JunkoNakajima 0:8d0ccf7acecd 11 1) Copy / Paste your Treasure Data API key into the mbed_app.json file
JunkoNakajima 0:8d0ccf7acecd 12 1) If using Wifi copy / paste the SSID / Password into the mbed_app.json file
JunkoNakajima 0:8d0ccf7acecd 13 1) Create Database called `test_database` for the program to send data to
JunkoNakajima 0:8d0ccf7acecd 14 1) Compile and Run code on board (`mbed compile --target auto --toolchain GCC_ARM --flash --sterm`)
JunkoNakajima 0:8d0ccf7acecd 15 1) View data in Treasure Data
JunkoNakajima 0:8d0ccf7acecd 16
JunkoNakajima 0:8d0ccf7acecd 17 ### What does this look like?
JunkoNakajima 0:8d0ccf7acecd 18 // TODO: Video
JunkoNakajima 0:8d0ccf7acecd 19
JunkoNakajima 0:8d0ccf7acecd 20
JunkoNakajima 0:8d0ccf7acecd 21 ### What if i'm not using Wifi? Or a different Wifi?
JunkoNakajima 0:8d0ccf7acecd 22 Thats awesome! In this program we are using the ism43362 wifi on the ST IOT01A board, but if you have a different board just swap out the network driver and change the config setting in the `mbed_app.json` file and you're good to go! All the NSAPI IP based drivers are compatible, so it works with Wifi, Ethernet, Cellular, ...etc.
JunkoNakajima 0:8d0ccf7acecd 23
JunkoNakajima 0:8d0ccf7acecd 24 ## How is this working?
JunkoNakajima 0:8d0ccf7acecd 25 See the readme on the [Treasure Data REST API Library](https://github.com/blackstoneengineering/mbed-os-treasuredata-rest).
JunkoNakajima 0:8d0ccf7acecd 26
JunkoNakajima 0:8d0ccf7acecd 27 ## Liscense
JunkoNakajima 0:8d0ccf7acecd 28 Apache 2.0