node-beacon-scanner
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -6,3 +6,3 @@ /* ------------------------------------------------------------------ | ||
* Released under the MIT license | ||
* Date: 2017-09-06 | ||
* Date: 2017-09-15 | ||
* ---------------------------------------------------------------- */ | ||
@@ -75,3 +75,3 @@ 'use strict'; | ||
// iBeacon | ||
if(manu && manu.readUInt32BE(0) === 0x4c000215) { | ||
if(manu && manu.length >= 4 && manu.readUInt32BE(0) === 0x4c000215) { | ||
return 'iBeacon'; | ||
@@ -78,0 +78,0 @@ } |
{ | ||
"name": "node-beacon-scanner", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "The node-beacon-scanner is a Node.js module which allows you to scan BLE beacon packets and parse the packet data. This module supports iBeacon, Eddystone, and Estimote.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/scanner.js", |
@@ -391,11 +391,11 @@ node-beacon-scanner | ||
Property |Type |Description | ||
:--------------|:--------|:---------- | ||
`nearableId` | String | Nearable identifier | ||
`temperature` | Number | Temperature (°C) | ||
`moving` | Boolean | Moving state (true: moving) | ||
`acceleration` | Object | Acceleration | ||
+ `x` | Number | Acceleration on the X axis (milli G) | ||
+ `y` | Number | Acceleration on the Y axis (milli G) | ||
+ `z` | Number | Acceleration on the Z axis (milli G) | ||
Property | |Type |Description | ||
:--------------|:----|:--------|:---------- | ||
`nearableId` | | String | Nearable identifier | ||
`temperature` | | Number | Temperature (°C) | ||
`moving` | | Boolean | Moving state (true: moving) | ||
`acceleration` | | Object | Acceleration | ||
-- | `x` | Number | Acceleration on the X axis (milli G) | ||
-- | `y` | Number | Acceleration on the Y axis (milli G) | ||
-- | `z` | Number | Acceleration on the Z axis (milli G) | ||
@@ -405,2 +405,4 @@ --------------------------------------- | ||
* v0.0.2 (2017-09-15) | ||
* Fixed a bug that an exception was thrown when an unknown packet came. | ||
* v0.0.1 (2017-09-06) | ||
@@ -407,0 +409,0 @@ * First public release |
42112
444