Warning: This library is currently in early development, and the api will change! |
>> npm install wabash-network |
//Live Example var WabashClient = require('wabash-network'); var client = new WabashClient({ userId: 'GuestUser', apiKey: '0000-00000000-0000' }); client.listen('/public/cryptonic26/sensors/temperature', { //message query object source: 'CryptonicsOfficeTemperature', message: 'temperature' }, function (message) {
//report current temperature console.log('The temperature inside Cryptonic\'s office is', message.currentTemperature, 'Degrees F' );
//report average temerature console.log('With an average of', message.averageTemperature, 'Degrees F' ); } ); |
[Placeholder for image of device after installation]
The data comes from a temperature sensor I have setup at my office. I measure and emit into the Wabash Network every three seconds.
Since my device is emitting data into a public namespace on the network, any other device in the world can listen for it’s temperature updates!