Upload
thomas-conte
View
593
Download
2
Embed Size (px)
Citation preview
Meetup Node.JS ParisTessel, Project Oxford,
Azure IoT
Thomas ContéTechnical Evangelist,
Microsoft@tomconte
The Tessel is tiny
Its modules too
Modules
▪ Accelerometer▪ Ambient Light +
Sound▪ Audio▪ Bluetooth Low
Energy▪ Camera▪ Climate▪ GPS
▪ GPRS▪ Infrared▪ MicroSD Card▪ nRF24 Module▪ Relay▪ RFID▪ Servo
Node.JS for IoT
▪ Lots of projects around controlling hardware in Node.JS– Real-time event processing– Simpler than C/C++– Native connectivity– Lots of modules to reuse
▪ Some examples– https://
github.com/rwaldron/johnny-five – http://node-ardx.org/ – http://nodebots.io/ – http://www.espruino.com/
http://blog.technical.io/post/98257815497/how-tessel-works-the-basics
Listen for Ambient module events
var tessel = require('tessel');
var ambientlib = require('ambient-attx4');
var ambient = ambientlib.use(tessel.port['A']);
ambient.on('ready', function () {
ambient.setLightTrigger(0.5);
ambient.on('light-trigger', function(data) {
console.log("Our light trigger was hit:", data);
});
});
function upload_picture(name, image) { var options = { hostname: blob_host, port: 443, path: '/' + blob_container + '/' + name + blob_sas, method: 'PUT', headers: { 'Content-Length' : image.length, 'x-ms-blob-type' : 'BlockBlob', 'Content-Type' : 'image/jpeg' } }; var req = https.request(options, function(res) { res.on('data', function(d) { process.stdout.write(d); }); });
Face Detection with Project Oxford
• Tessel + Camera module• Take a picture on button press• Upload the picture to Azure
Blob Storage• Query Project Oxford Face API,
using Blob URL• Get a response back with face
attributes like gender and age• Identify faces!
Connect your devices to Azure
Field gateway
Cloud protocolgateway
IP-c
apab
lePA
N-de
vice
s
Event processing and insight(e.g., hot and cold paths)
Device business logic,connectivity monitoring
Application device provisioning and management
cloudfield
IoT Hub
github.com/Azure/azure-iot-sdks
▪ Device-facing– For devices and field gateway
▪ Platforms– RTOS (FreeRTOS)– Linux (Ubuntu, Debian, Fedora,
Raspbian, Angstrom)– Windows 7/8/10– ARM mbed– Android– iOS– …
▪ Languages– C, Java, C#, JavaScript
▪ Service-facing– For back-ends and cloud
gateway▪ Languages
– .NET C#, Java, Node
Thank you