Coder Social home page Coder Social logo

meshblu-connector-runner's Introduction

meshblu-connector-runner

Build Status Test Coverage Dependency status devDependency Status Slack Status

NPM Dependency status

A component of Meshblu Connectors. Click here to view the component documentation.

Getting Started

Installation

In the connector project, follow these steps:

1 - Install the runner inside the connector

npm install --save meshblu-connector-runner

2 - Add to the start script to your package.json

{
  //...
  "scripts": {
    "start": "meshblu-connector-runner"
  }
  //...
}

Usage

Requirements:

  • A meshblu configuration - see meshblu-config
  • A compatible connector. Use the latest generator to build a connector.

Running the connector:

npm start

meshblu-connector-runner's People

Contributors

iamruinous avatar peterdemartini avatar sqrtofsaturn avatar virgilvox avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

meshnu

meshblu-connector-runner's Issues

metaData undefined

I am trying to use the lightblue bean connector on Mac OS X to communicate with my lightblue bean device. I am using a trigger in n Octoblu flow to send a simple string payload. When I try and send a command to the device, I see the following error in the log:

Sat, 23 Jul 2016 01:59:04 GMT meshblu-connector-bean:index started
Sat, 23 Jul 2016 01:59:04 GMT meshblu-connector-bean:index on config { interval: { accelerometer: 0, rssi: 0, temperature: 0 },
localName: 'KD-Bean',
notify:
{ scratch1: false,
scratch2: false,
scratch3: false,
scratch4: false,
scratch5: false } }
/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/meshblu-connector-runner/src/message-handler.coffee:34
job = this.jobs[metadata.jobType];
^

TypeError: Cannot read property 'jobType' of undefined
at MessageHandler.onMessage (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/meshblu-connector-runner/src/message-handler.coffee:14:25)
at MessageHandler.onMessage (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/meshblu-connector-runner/src/message-handler.coffee:1:1)
at Connection. (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/meshblu-connector-runner/src/runner.coffee:39:25)
at emitOne (events.js:90:13)
at Connection.emit (events.js:182:7)
at Connection._handleAckRequest (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/meshblu/lib/Connection.js:190:12)
at Socket. (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/meshblu/lib/Connection.js:147:12)
at Socket.Emitter.emit (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/component-emitter/index.js:131:20)
at Socket.onevent (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/socket.io-client/lib/socket.js:263:10)
at Socket.onpacket (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/socket.io-client/lib/socket.js:221:12)
at Manager. (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/component-bind/index.js:21:15)
at Manager.Emitter.emit (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/component-emitter/index.js:131:20)
at Manager.ondecoded (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/socket.io-client/lib/manager.js:333:8)
at Decoder. (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/component-bind/index.js:21:15)
at Decoder.Emitter.emit (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/component-emitter/index.js:131:20)
at Decoder.add (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/socket.io-parser/index.js:247:12)
at Manager.ondata (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/socket.io-client/lib/manager.js:323:16)
at Socket. (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/component-bind/index.js:21:15)
at Socket.Emitter.emit (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/component-emitter/index.js:131:20)
at Socket.onPacket (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/engine.io-client/lib/socket.js:441:14)
at WS. (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/engine.io-client/lib/socket.js:258:10)
at WS.Emitter.emit (/Users/kdious/.octoblu/MeshbluConnectors/6304c325-c292-4177-a6d6-a9df17dd40e4/node_modules/component-emitter/index.js:131:20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.