Skip to content

telstra/arduino-mkr-nb-1500-cumulocity-mqtt

Repository files navigation

Telstra Arduino MKR NB 1500 Examples

This sketch demonstrates how to:

  • Register an MKR NB 1500 on Cumulocity over MQTT
  • Send measurements from an MKR NB 1500 to Cumulocity over MQTT

If you are looking to use the Cumulocity REST Interface over HTTP see this example instead.

For further details on Cumulocity's MQTT implementation refer to the Cumulocity documentation.

Prerequisites

How to run

  1. Update arduino_secrets.h with your Cumulocity domain and static user credentials (different to your normal credentials)
  2. Upload the sketch and open the Serial Monitor
  3. Log in to Cumulocity and switch to the Device Management application
  4. Navigate to Devices > Registration
  5. Register device > General device registration. Enter the IMEI printed to the Serial Monitor in the Device ID field.
  6. Accept the device
  7. Navigate to Devices > All devices. Your device should have appeared and will send a measurement every minute