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.
- An Arduino MKR NB 1500 board
- A Telstra Cat-M1 IoT SIM card with an active subscription
- A Telstra IoT (Cumulocity) account and tenancy
- A Computer with the Arduino IDE installed
- (Optional) Any temperature sensor
- Update
arduino_secrets.h
with your Cumulocity domain and static user credentials (different to your normal credentials) - Upload the sketch and open the Serial Monitor
- Log in to Cumulocity and switch to the Device Management application
- Navigate to Devices > Registration
- Register device > General device registration. Enter the IMEI printed to the Serial Monitor in the Device ID field.
- Accept the device
- Navigate to Devices > All devices. Your device should have appeared and will send a measurement every minute