pyrak811 balena
1.0.0
This is a basic example on how to use PiSupply IoT LoRa Node pHAT for Raspberry Pi with balenaCloud.
The application will join TheThingsNetwork using OTAA and send the CPU temperature in Cayenne LPP format every 5 minutes.
All you need to do is:
Device Configuration and ensure that UART is enabledgit remote add balena [email protected]:YourAccount/YourApplication.gitgit push balena masterDevice EUI which will be printed in the Logs window.Device EUI copied from previous stepAPP_EUI with App EUI copied from TheThingsNetwork consoleAPP_KEY with App Key copied from TheThingsNetwork consoleYour application will restart and send the CPU temperature to TheThingsNetwork every 5 minutes.
SERIAL_PORT: The default serial port is /dev/ttyS0, depending on your Raspberry Pi model and configuration you might have to override the default (e.g. /dev/ttyAMA0)BAND: The default LoRaWan region is EU868, you can set this variable to match your region (supported regions are: EU868, US915, AU915, KR920, AS923, IN865)