This example shows how to use the WisBlock Sensor RAK1906 environment board. It uses OTAA to connect to the network and CayenneLPP to encode the payload.
The WisBlock Sensor RAK1906 environment board uses gas sensor BME680 which can measure relative humidity, barometric pressure, ambient temperature and gas (VOC).
Product physical map is as follows:
To use the WisBlock Sensor RAK1906 environment board, The following hardware is required.
- WisBlock Base RAK5005-O * 1pcs
- WisBlock Core RAK4631 * 1pcs
- WisBlock Sensor RAK1906 * 1pcs
Hardware is shown as follows:
For stable connection, please use screws to tighten.
- Install PlatformIO if you have not yet so (https://www.platformio.org)
- Install support for WisBlock to PLatformIO (https://github.com/RAKWireless/WisBlock/tree/master/PlatformIO)
- You might want to update your WisBlock Core to the latest bootloader (check )
- Copy the
keys.h.sample
file intokeys.h
, edit it and configure the credentials for your devices. - Open the
main.ino
file, find theConfiguration
section and tweak it to your needs. - From the
code
folder (same where theplatformio.ini
file is) runpio run
to build the image - Connect your device and run
pio run -t upload
to upload the code to your device - If debug is enabled you will see output on the serial port (use
pio device monitor
to check it)