Comparing version 0.0.24 to 0.0.25
@@ -7,9 +7,11 @@ /** | ||
var apple = require('./apple/index.js'); | ||
var sticknfind = require('./sticknfind/index.js'); | ||
var estimote = require('./estimote/index.js'); | ||
var motsai = require('./motsai/index.js'); | ||
var radiusnetworks = require('./radiusnetworks/index.js'); | ||
var sticknfind = require('./sticknfind/index.js'); | ||
module.exports.apple = apple; | ||
module.exports.sticknfind = sticknfind; | ||
module.exports.estimote = estimote; | ||
module.exports.motsai = motsai; | ||
module.exports.radiusnetworks = radiusnetworks; | ||
module.exports.sticknfind = sticknfind; |
/** | ||
* Copyright reelyActive 2015-2016 | ||
* Copyright reelyActive 2015-2017 | ||
* We believe in an open Internet of Things | ||
@@ -10,6 +10,7 @@ */ | ||
var apple = require('../../common/manufacturers/apple/index.js'); | ||
var sticknfind = require('../../common/manufacturers/sticknfind/index.js'); | ||
var estimote = require('../../common/manufacturers/estimote/index.js'); | ||
var motsai = require('../../common/manufacturers/motsai/index.js'); | ||
var altbeacon = | ||
require('../../common/manufacturers/radiusnetworks/altbeacon.js'); | ||
var sticknfind = require('../../common/manufacturers/sticknfind/index.js'); | ||
@@ -57,2 +58,5 @@ | ||
break; | ||
case '0274': | ||
motsai.process(advertiserData); | ||
break; | ||
default: | ||
@@ -59,0 +63,0 @@ } |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"engines": { | ||
@@ -16,0 +16,0 @@ "node": ">=0.10.0" |
@@ -1133,3 +1133,3 @@ advlib | ||
This is an active work in progress. Expect regular changes and updates, as well as improved documentation! If you'd like to contribute, kindly read our [Node.js style guide](https://github.com/reelyactive/node-style-guide) and [contact us](http://context.reelyactive.com/contact.html) or make a pull request. | ||
This is an active work in progress. Expect regular changes and updates, as well as improved documentation! If you'd like to contribute, kindly read our [Node.js style guide](https://github.com/reelyactive/node-style-guide) and [contact us](http://www.reelyactive.com/contact/) or make a pull request. | ||
@@ -1142,3 +1142,3 @@ | ||
Copyright (c) 2015-2016 reelyActive | ||
Copyright (c) 2015-2017 reelyActive | ||
@@ -1145,0 +1145,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
/** | ||
* Copyright reelyActive 2015 | ||
* Copyright reelyActive 2015-2017 | ||
* We believe in an open Internet of Things | ||
@@ -33,2 +33,3 @@ */ | ||
'18fff90042450000003099001122334455012345aabbccabc0'; | ||
var INPUT_DATA_MOTSAI = '09ff7402000015000040'; | ||
@@ -109,3 +110,10 @@ // Expected outputs for the scenario | ||
accelerationZ: 3276 | ||
} | ||
}; | ||
var EXPECTED_DATA_MOTSAI = { | ||
motion: false, | ||
temperature: 21, | ||
accelerationX: 0, | ||
accelerationY: 0, | ||
accelerationZ: 1 | ||
}; | ||
@@ -221,2 +229,10 @@ describe('ble data manufacturerspecificdata', function() { | ||
}); | ||
it('should convert ble advertiser data for Motsai', function() { | ||
var advertiserData = { manufacturerSpecificData: {} }; | ||
manufacturerspecificdata.process(INPUT_DATA_MOTSAI, CURSOR, | ||
advertiserData); | ||
assert.deepEqual(advertiserData.manufacturerSpecificData.sensors, | ||
EXPECTED_DATA_MOTSAI); | ||
}); | ||
}); |
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
265467
130
5341