Skip to content

8bitkick/arduino-mkr-nb-1500-cumulocity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Telstra Arduino MKR NB 1500 Examples

Note: The below examples use straight AT commands so doesnt need the Arduino MKR library which can be found here Arduino MKRNB

These sketches demonstrate how to;

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

Prerequisites

  1. A Telstra Arduino MKR NB 1500 board.
  2. A Telstra SIM card with an active subscription.
  3. A Cumulocity account.
  4. A user with permissions to register devices.
  5. (Optional) A DHT11 temperature and humidity sensor.
  6. (Optional) The SimpleDHT library.

How to run

Register the MKR NB 1500

Open register_device. Enter your Cumulocity tenancy and user information on lines 20 - 22.

// Cumulocity tenancy config
String username = "";
String password = "";
String tenancy = "";

On line 23, give your device a name (eg MyArduino).

String deviceName = "";

Upload and run the sketch. Once successfully registered, the serial monitor will continuously print the deviceId; note this down.

Send measurements to Cumulocity

Open send_measurements. Enter your Cumulocity tenancy, user information, and deviceId on lines 30 - 33.

// Cumulocity tenancy config
String username = "";
String password = "";
String tenancy = "";
String deviceId = "";

Connect your DHT to GND, 5V, and pin 11.

Upload and run the sketch. You will now see measurements in Cumulocity.

About

Telstra Arduino MKR NB1500 Cumulocity example sketch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%