Comparing version 0.0.25 to 0.0.26
@@ -11,2 +11,3 @@ /** | ||
var estimote = require('./members/estimote.js'); | ||
var minew = require('./members/minew.js'); | ||
var genericaccess = require('./standard/genericaccess.js'); | ||
@@ -180,3 +181,6 @@ var genericattribute = require('./standard/genericattribute.js'); | ||
pulseoximeter.process(advertiserData); | ||
break; | ||
break; | ||
case('ffe1'): // Not a valid member service, but used by Minew | ||
minew.process(advertiserData); | ||
break; | ||
default: | ||
@@ -183,0 +187,0 @@ } |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"engines": { | ||
@@ -16,0 +16,0 @@ "node": ">=0.10.0" |
@@ -739,2 +739,43 @@ advlib | ||
##### Minew | ||
Supports the Minew i7 accelerometer beacon that sends data within a service. Note that the service UUID __0xffe1__ does not appear to be a valid member service granted by the Bluetooth SIG. | ||
###### i7 Accelerometer Beacon | ||
This is best illustrated with an example using the following input: | ||
advData: { | ||
serviceData: { | ||
uuid: "ffe1", | ||
data: "a1036400d70087fffe5705a03f23ac" | ||
} | ||
} | ||
| Byte(s) | Hex String | Description | | ||
|--------:|:-------------|:------------------------------------| | ||
| 0 | a1 | Frame type | | ||
| 1 | 03 | Product model | | ||
| 2 | 64 | Battery level in percent | | ||
| 3-4 | 00d7 | Acceleration in X-axis (signed 8.8) | | ||
| 5-6 | 0087 | Acceleration in Y-axis (signed 8.8) | | ||
| 7-8 | fffe | Acceleration in Z-axis (signed 8.8) | | ||
| 9-14 | 5705a03f23ac | MAC address | | ||
Which would add the following property to advData: | ||
serviceData: { | ||
uuid: "ffe1", | ||
data: "a1036400d70087fffe5705a03f23ac", | ||
minew: { | ||
frameType: "a1", | ||
productModel: 3, | ||
batteryPercent: 100, | ||
accelerationX: 0.83984375, | ||
accelerationY: 0.52734375, | ||
accelerationZ: -0.0078125, | ||
macAddress: "ac:23:3f:a0:05:57" | ||
} | ||
} | ||
#### Standard Services | ||
@@ -741,0 +782,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
269811
132
5438
1195