Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.97 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.97 KB

ESP32-DATAHUB

Code from the blog article on ESP32 and LoRaWAN. Link to the article: To be provided when published.

Prerequisites

In order to be able to configure the DataHub policy, you need:

  • The HiveMQ API enabled on the broker
  • The HiveMQ MQTT CLI (latest version)

Upload the schema(s)

mqtt hivemq schema create --id pre-lorawan-application --type json --file pre-schema.json
mqtt hivemq schema create --id post-lorawan-application --type json --file post-schema.json

Upload the script

mqtt hivemq script create --id lorawan-transformation --type transformation --file script.js

Upload the policy

mqtt hivemq data-policy create --file policy.json

Run Arduino code

The Arduino code has been created from a sample provided on SeeedStudio Wiki and modified to fit our requirments.

It will run on the following setup:

Follow the setups in the article to wire everything together and deploy the code on it.