Giter Site home page Giter Site logo

iot-demo's Introduction

services platforms author
iot-hub, iot-suite
Nodejs
ZhijunZhao

Send device-to-cloud messages

This sample repo accompanies Lesson 3: Send device-to-cloud messages lesson. It shows how to send messages from a Raspberry Pi 3 device to Azure IoT hub. It also demonstrates how to use an Azure function app to receive incoming IoT hub messages and persist them to Azure table storage.

Prerequisites

See Lesson 3: Send device-to-cloud messages for more information.

Repository information

  • app sub-folder contains the sample Node.js application that sends device-2-cloud messages.
  • arm-template.json is the ARM template containing an Azure function app and a storage account.
  • arm-template-param.json file is the configuration file used by the ARM template.
  • ReceiveDeviceMessages sub-folder contains Node.js code for the Azure function.

Running this sample

Please follow the Lesson 3: Send device-to-cloud messages for detailed walkthrough of the steps below.

Deploy and run

Install required npm packages on the host:

npm install

Create a JSON configuration file in the .iot-hub-getting-started sub-folder of the current user's home directory:

gulp init

Install required tools/packages on the Raspberry Pi 3 device, deploy sample application, and run it on the device:

gulp install-tools
gulp deploy
gulp run

Run the sample application on the device and read messages persisted in the Azure storage:

gulp run --read-storage

iot-demo's People

Contributors

tbrushwyler avatar

Watchers

 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.