A sample application that connects Nordic devices (e.g. Nordic Thingy:91) to the IoT Creators platform.
Before you compile and install this sample application please follow a basic guide that explains how to communicate between the IoT Creators platform and your device.
https://docs.iotcreators.com/docs/nordic-thingy91
In the next steps, we assume that your device is already registered on the IoT Creators platform and you know how to decode payload sent from a device and how to send a downlink message.
- Thingy:91
- nRF Connect SDK 1.8.0
- (tested on v1.7.0, v1.8.0, v1.9.1)
- Install nRF Connect for Desktop on your computer.
- Follow nRF Connect SDK Installation Guide and install version 1.8.0.
- Install VS Code.
- Follow nRF Connect extensions for VS Code Installation Guide.
- Git clone this repository or download it and unzip.
- Open VS Code.
- In NRF CONNECT extension panel select Add an existing application from Welcome section.
- Select cloned or downloaded repository folder.
- Application (e.g. iotcreators-nordic) should appear in the Applications section of NRF CONNECT extension panel.
- Hover the application name (e.g. iotcreators-nordic) in the Applications section of NRF CONNECT extension panel, an icon named Add Build Configuration should appear near the application name. Click it.
- In the Add Build Configuration form leave default values in all fields and click the Build Configuration button.
- Wait several minutes to build.
- Connect Thingy:91 with a USB cable. Enter boot mode by turning it on while pressing the main button.
- Open nRF Connect for Desktop and open Programmer (install it if needed).
- Use Add file and search for app_signed.hex in build\zephyr folder of your application.
- Select Nordic Thingy:91 from the SELECT DEVICE dropdown.
- After clicking Write you will see the MCUboot DFU popup.
- Hit the Write button in the MCUboot DFU popup.
- Wait 20-40 seconds until success message is displayed.
- Power cycle the device to start the application.
Status | LED |
---|---|
LTE connection search | Light blue, blinking |
Active mode | Green, blinking |
In Active mode the application every 60 seconds sends to IoT Creators platform basic sensors readings.
{"Temp":21.98,"Press":1.0116,"Humid":39.99,"Gas":13086,"Vbat":4371}
Immediately after pressing the main button, the application sends this information to the IoT Creators platform.
{"Msg":"Event: Thingy:91 button pressed, 000000000000000"}
where 000000000000000 is the device IMEI number.