1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Merge pull request #110 from hardillb/master

Updating doc to mention only 1 sensorTag can be used at any given time.
This commit is contained in:
Nick O'Leary 2015-04-08 14:07:36 +01:00
commit 1fda2d56ab
3 changed files with 9 additions and 3 deletions

View File

@ -78,14 +78,18 @@
<!-- The first <p> is used as the pop-up tool tip when hovering over a --> <!-- The first <p> is used as the pop-up tool tip when hovering over a -->
<!-- node in the palette. --> <!-- node in the palette. -->
<p>Input node for the Ti SensorTag</p> <p>Input node for the Ti SensorTag</p>
<p>For this node to work correctly Node-Red needs to be run as root, this <p>For this node to work correctly Node-Red needs to be run as <i>root</i>
due to how Bluetooth 4.0 support is currently implemented in Linux</p> , this due to how Bluetooth 4.0 support is currently implemented in
Linux</p>
<p>The UUID field is the mac address of the sensor tag, this is optional <p>The UUID field is the mac address of the sensor tag, this is optional
can be used to bind to a specific SensorTag if you have more than one can be used to bind to a specific SensorTag if you have more than one
active in range at the same time. (note you can only have one SensorTag active in range at the same time. (note you can only have one SensorTag
per node-red instance at the moment)</p> per node-red instance at the moment)</p>
<p>The topic setting is a prefix that will be pre-pended to name of the <p>The topic setting is a prefix that will be pre-pended to name of the
sensor that creates the reading. e.g. <i>sensorTag/temperature</i></p> sensor that creates the reading. e.g. <i>sensorTag/temperature</i></p>
<p><strong>NOTE:</strong> Only 1 sensorTag can be read from at a time,
if you add more than one to the canvas then only the first to connect
will work.</p>
</script> </script>
<!-- Finally, the node type is registered along with all of its properties --> <!-- Finally, the node type is registered along with all of its properties -->

View File

@ -23,4 +23,6 @@ these sensors will be sent as a JSON object payload with the sensor name appende
* Gyroscope - { topic: [topic_prefix]/ , payload: { x:0.0, y:0.0, z:0.0 } } * Gyroscope - { topic: [topic_prefix]/ , payload: { x:0.0, y:0.0, z:0.0 } }
* Buttons - { topic: [topic_prefix]/ , payload: { left: "down", right: "up"} } * Buttons - { topic: [topic_prefix]/ , payload: { left: "down", right: "up"} }
The sensorTag library used by this node only supports using 1 SensorTag at once.
**NOTE:** Node-RED needs to be run as root inorder or access the Linux Bluetooth 4.0 system calls **NOTE:** Node-RED needs to be run as root inorder or access the Linux Bluetooth 4.0 system calls

View File

@ -1,7 +1,7 @@
{ {
"name": "node-red-node-sensortag", "name": "node-red-node-sensortag",
"description": "A Node-RED node to read data from a TI SensorTag", "description": "A Node-RED node to read data from a TI SensorTag",
"version": "0.0.1", "version": "0.0.2",
"keywords" : ["node-red","sensortag"], "keywords" : ["node-red","sensortag"],
"dependencies": { "dependencies": {
"sensortag" : "0.1.9" "sensortag" : "0.1.9"