Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

advlib

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advlib - npm Package Compare versions

Comparing version 0.0.25 to 0.0.26

lib/ble/data/gatt/services/members/minew.js

6

lib/ble/data/gatt/services/index.js

@@ -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 @@ }

2

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc