Comparing version 0.0.1 to 0.0.2
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
42
1196
0
67597