1.0.11 • Published 9 years ago

leap-mqtt v1.0.11

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

What's leap-mqtt

======

This is a nodejs module for grasping gesture data from LeapMotion devices,and then send these data to mqtt servers。

Install

$ npm install leap-mqtt

Useage

var LM=require('leap-mqtt');
    Leap2Mqtt=LM.LeapMqtt;
var option={
  username:'username',
  password:'password'
}
var client = LM.getClient('mqtt://MQTTSERVER:PORT',option);
var controller = LM.getController();
    controller.connect();
client.on('connect',function(err,data){
    Leap2Mqtt.sendgesture(client,controller,'LEAP');
})
var LM=require('leap-mqtt');
var option={
  username:'username',
  password:'password'
}
var client2 = LM.getClient('mqtt://MQTTSERVER:PORT',option);
client2.on('connect',function(err,data){
    client2.subscribe('LEAP');
});
client2.on('message', function (topic, data) {
        console.log(data.toString());
})
1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago