1.0.11 • Published 10 years ago

leap-mqtt v1.0.11

Weekly downloads
2
License
ISC
Repository
github
Last release
10 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

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.1

10 years ago