1.7.3 • Published 8 years ago

microexpresscion v1.7.3

Weekly downloads
1
License
LGPL-3.0
Repository
github
Last release
8 years ago

Microexpresscion is an SCXML orchestration server designed to be run on nodejs IoT devices, like the Intel Edison development board.

Microexpresscion provides Node.js express middleware which implements the State Machines as a Service (SMaaS) REST protocol.

Installation

npm install -g microexpresscion

Usage

microexpresscion path/to/scxml

Open http://localhost:3000/ in your web browser to view the web dashboard.

API

See bin/www for example of the JavaScript API.

var microexpresscion = require('../index');
var http = require('http');

microexpresscion.initExpress(pathToScxml,function(err, app){

  if(err) throw err;

  /**
   * Create HTTP server.
   */

  var server = http.createServer(app);

  /**
   * Listen on provided port, on all network interfaces.
   */

  server.listen(port);
  server.on('error', onError);
  server.on('listening', onListening);

  function onListening() {
    var addr = server.address();
    var bind = typeof addr === 'string'
      ? 'pipe ' + addr
      : 'port ' + addr.port;
    console.log('Listening on ' + bind);
  }
});

Examples

UMIO Universal Morse Input Output device

Links

1.7.3

8 years ago

1.7.2

8 years ago

1.7.1

8 years ago

1.7.0

9 years ago

1.6.0

9 years ago

1.5.0

9 years ago

1.3.0

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago