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.1 to 0.0.2

lib/reelyactive/common/util/identifier.js

3

lib/ble/index.js

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

module.exports.process = process;
module.exports.process = process;
module.exports.address = address;
/**
* Copyright reelyActive 2015
* We believe in an open Internet of Things
* Process a raw reelyActive radio payload into semantically meaningful
* information.
* @param {string} payload The raw payload as a hexadecimal-string.
* @return {EUI64} EUI-64 identifier.
*/
var identifier = require('./common/util/identifier.js');
var data = require('./data/index.js');
var flags = require('./flags/index.js');
function process(payload) {
var ra28 = new identifier(identifier.RA28, payload.substr(0, 7));
var eui64 = ra28.toType(identifier.EUI64);
eui64.flags = flags.process(payload.substr(7, 1));
if (payload.length === 12) {
eui64.data = data.process(payload.substr(8, 4));
}
return eui64;
}
module.exports.process = process;

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

],
"version": "0.0.1",
"version": "0.0.2",
"engines": {

@@ -16,0 +16,0 @@ "node": "^0.10.0"

Sorry, the diff of this file is not supported yet

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