IoT Device Management for: Microsoft Azure, Amazon AWS and IBM Bluemix. microServiceBus-node is the node.js based device agent used together with microServiceBus.com
Clone or download
Latest commit 7c679d1 Jan 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Update Utils.js Jan 4, 2019
snap Rollback to node version 8.15 Dec 28, 2018
test Updated dependancies and refactored unit tests Dec 13, 2018
.coveralls.yml Migrated from microServiceBus/microservicebus.node Sep 4, 2017
.gitignore Updated node.js version for snap to 10.14 Dec 19, 2018
.npmignore Updated node.js version for snap to 10.14 Dec 19, 2018
.npmrc ... Dec 18, 2018
.snyk mSB.node - Allow 'node restore' with environment uri parameter Mar 19, 2018
.tesselinclude Migrated from microServiceBus/microservicebus.node Sep 4, 2017
.travis.yml Updated to test for 10.14.2 Dec 20, 2018
Gruntfile.js Migrated from microServiceBus/microservicebus.node Sep 4, 2017
LICENSE Updated to MIT License Jan 15, 2019
README.md Update README.md May 9, 2018
azuredeploy.json Migrated from microServiceBus/microservicebus.node Sep 4, 2017
getlicenses.js Updated node.js version for snap to 10.14 Dec 19, 2018
global.js ... Apr 24, 2018
globalRestore.js Migrated from microServiceBus/microservicebus.node Sep 4, 2017
metadata.json Migrated from microServiceBus/microservicebus.node Sep 4, 2017
microservicebus-node.njsproj updated so that we can use peta pkg of core Oct 24, 2017
microservicebus-node.sln Migrated from microServiceBus/microservicebus.node Sep 4, 2017
package-lock.json Removed unneccesary dependancies Dec 20, 2018
package.json Rollback to node version 8.15 Dec 28, 2018
restore.js ... Apr 24, 2018
runbeta.js mSB.node: Added support for Offline mode Jul 13, 2018
server.js Migrated from microServiceBus/microservicebus.node Sep 4, 2017
snapinit.js 1.0.30 - Removed dependancy to npm Dec 12, 2018
snapstart.js Added support for custom repos Nov 11, 2018
start.js mSB-node: Remove dependancies to NPM Dec 12, 2018

README.md

alt

Build Status

microservicebus-node

microServiceBus.com is an integration platform for IoT and enterprise applications. This platform lets you expose microservices from small devices and large systems using a remote hosting infrastructure. These nodes can run on both Linux and Windows using components built either natively (ARM) or using node.js.

For more information about microServiceBus.com

To create your own service using microServiceBus.com.

Simply follow the template below. When your are done, simply save in the portal.

/* 
 * Service template for node.js
 * 
 * To use this template, simply add your code in Start and Stop method
*/
var timerEvent; // In case you use a timer for fetching data
 
var exports = module.exports = {
    Start : function () {
     
        var base  = this;
        timerEvent = setInterval(function () {
            var message = {
                someRandomValue : Math.random() 
            };
                
            // Create an integration message using the CreateMessage 
            // method.
             base.SubmitMessage(message);  
             
        }, 3000);    
        
    },

    // The Stop method is called from the Host when the Host is 
    // either stopped or has updated integrations. 
    Stop : function () {
        // Stop the timerEvent
        clearInterval(timerEvent);
    },    
    
    // The Process method is called from the host as it receives 
    // messages from the hub. The [messasge] parameter is a JSON 
    // object (the payload) and the [context] parameter is a 
    // value/pair object with parameters provided by the hub.
    Process : function (message, context) {
        // TO DO! This is where you code for when a message is sent
        // to this host.
        
        
        var x = JSON.parse("<test/>");
        console.log('');
        console.log('The Process method is called.');
        var payload = JSON.stringify(message);
        console.log(payload);
        console.log('');
    },  
}