We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Building IoT Device Applications in JavaScript and C++

Formal Metadata

Title
Building IoT Device Applications in JavaScript and C++
Title of Series
Number of Parts
163
Author
License
CC Attribution - NonCommercial - ShareAlike 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal and non-commercial purpose as long as the work is attributed to the author in the manner specified by the author or licensor and the work or content is shared also in adapted form only under the conditions of this
Identifiers
Publisher
Release Date
Language

Content Metadata

Subject Area
Genre
Abstract
In this talk I will share my experience from building macchina.io, an open source toolkit forfor rapidly building IoT applicationsthat run on Linux-based devices like the Raspberry Pi, Beaglebone or RED Brick.It implements a modular, extensible JavaScript and C++ runtime environment inspired by OSGi,providing interfaces to various kinds of sensors and devices, as well as cloud services.macchina.io is based on the POCO C++ Libraries and the V8 JavaScript engine. I will first give a brief overview of the toolkit, then talk about some of the more interesting implementation details, like the C++-to-JavaScript bridging mechanism that allows the use of C++ classes from JavaScript without the need to manually write glue code or separate interface descriptions. I will also demonstrate how to build an IoT application that collects various sensormeasurements, stores them in a local database, visualizes them on a local website and performs various actions, such as sending SMS messages or posting to Twitter if certain eventsoccur, all with just a few lines of easily comprehensible JavaScript.