Giter Club home page Giter Club logo

arduino-mkr-nb-1500-cumulocity's Introduction

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.

arduino-mkr-nb-1500-cumulocity's People

Contributors

brendan-myers avatar developersteve avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.