Code from the blog article on ESP32 and LoRaWAN. Link to the article: To be provided when published.
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)
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
mqtt hivemq script create --id lorawan-transformation --type transformation --file script.js
mqtt hivemq data-policy create --file policy.json
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:
- XIAO ESP32S3
- Grove Shield for XIAO ESP32
- Grove-Wio-E5 Wireless Module (868 Mhz for EU)
- Grove - Temperature & Humidity Sensor (DHT11)
- Grove cables (in case you don’t have enought)
Follow the setups in the article to wire everything together and deploy the code on it.