Skip to content

icsee/suomayaiotdispositivo

Repository files navigation

services platforms author
iot-hub
Nodejs
Juan Amezquita

IoT Hub Raspberry Pi 3 aplicacion cliente

Build Status

This repo contains the source code to help you get familiar with Azure IoT using the Microsoft IoT Pack for Raspberry Pi 3 Starter Kit. You will find the lesson-based tutorials on Azure.com.

configuración de raspberry

Enable SSH on your Pi

Follow this page to enable SSH on your Pi.

Instalación de node.js

Check your nodejs version on your Pi:

node -v

If your nodejs' version is below v4.x, please follow the instruction to install a new version of nodejs

curl -sL http://deb.nodesource.com/setup_4.x | sudo -E bash
sudo apt-get -y install nodejs

Si no se cuenta con sensor puede simular los datos

En el archivo config.json puede decidir si quiere datos simulados o va a utilziar un sensor

  1. Open the config.json file.
  2. Change the simulatedData value from false to true.

Running this sample

Install package

Install all packages by the following command:

npm install

ejecutar la aplicación

Run the client application with root priviledge, and you also need provide your Azure IoT hub device connection string, note your connection should be quoted in the command.

sudo node index.js 

About

plantilla control dispositivo iot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published