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.23 to 0.0.24

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

6

lib/ble/data/gatt/services/index.js
/**
* Copyright reelyActive 2015
* Copyright reelyActive 2015-2017
* We believe in an open Internet of Things

@@ -10,2 +10,3 @@ */

var google = require('./members/google.js');
var estimote = require('./members/estimote.js');
var genericaccess = require('./standard/genericaccess.js');

@@ -72,2 +73,5 @@ var genericattribute = require('./standard/genericattribute.js');

break;
case('fe9a'):
estimote.process(advertiserData);
break;
default:

@@ -74,0 +78,0 @@ }

2

package.json

@@ -13,3 +13,3 @@ {

],
"version": "0.0.23",
"version": "0.0.24",
"engines": {

@@ -16,0 +16,0 @@ "node": ">=0.10.0"

@@ -466,2 +466,3 @@ advlib

| 0xfeaa | Google | Eddystone |
| 0xfe9a | Estimote | Estimote Location & Telemetry |

@@ -686,2 +687,55 @@

##### Estimote
Supports Estimote beacons that send additional data within a service. Note that [Estimote Nearables](#nearables) use Manufacturer Specific Data instead of a service. The first byte of the service data specifies the type, of which there are two observed: location (0x00) and telemetry (0x12).
| Byte(s) | Hex String | Description |
|--------:|:-----------------|:--------------------------|
| 0 | 12 | Estimote Telemetry packet |
| 1-8 | ceaac4fd251b1e35 | 64-bit static identifier |
| 9+ | | Type-dependent |
Process Estimote service data (UUID = 0xfe9a).
advlib.ble.data.gatt.services.members.process(advData);
Consider the following case.
###### Estimote Telemetry
This is best illustrated with an example using the following input:
advData: {
serviceData: {
uuid: "fe9a",
data: "12ceaac4fd251b1e350020c9010196f002"
}
}
| Byte(s) | Hex String | Description |
|--------:|:-----------------|:------------------------------------------|
| 0 | 12 | Estimote Telemetry packet |
| 1-8 | ceaac4fd251b1e35 | 64-bit static identifier |
| 9 | 00 | Subtype 0x00 |
| 10 | 20 | Acceleration in X-axis (two's complement) |
| 11 | c9 | Acceleration in Y-axis (two's complement) |
| 12 | 01 | Acceleration in Z-axis (two's complement) |
| 13-16 | 0196f002 | Motion/state/duration bytes? |
Which would add the following property to advData:
serviceData: {
uuid: "fe9a",
data: "12ceaac4fd251b1e350020c9010196f002",
estimote: {
type: "telemetry",
id: "ceaac4fd251b1e35",
subtype: "00",
accelerationX: 0.5,
accelerationY: -0.859375,
accelerationZ: 0.015625,
statusBytes: [ "01", "96", "f0", "02" ]
}
}
#### Standard Services

@@ -688,0 +742,0 @@

Sorry, the diff of this file is not supported yet

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