Comparing version 0.0.42 to 0.0.43
11
bglib.js
@@ -0,1 +1,10 @@ | ||
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT | ||
// file at the top-level directory of this distribution. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
var libRes = require('./lib/bglib-responses'); | ||
@@ -869,5 +878,5 @@ var libEvent = require('./lib/bglib-events'); | ||
dfuFlashUpload: {header : {tType: _bgtechnologyType.Bluetooth, mType: _bgmessageType.Command, lolen : 1, cls : _bgcommandClass.DFU, command : _bgcommandIDs.DFU_Flash_Upload}, paramCode: 0x08}, | ||
dfuFlashUploadFinish: {header : {tType: _bgtechnologyType.Bluetooth, mType: _bgmessageType.Command, lolen : 0, cls : _bgcommandClass.DFU, command : _bgcommandIDs.DFU_Flash_Upload_Finish}, paramCode: 0x04}, | ||
dfuFlashUploadFinish: {header : {tType: _bgtechnologyType.Bluetooth, mType: _bgmessageType.Command, lolen : 0, cls : _bgcommandClass.DFU, command : _bgcommandIDs.DFU_Flash_Upload_Finish}, paramCode: 0x00}, | ||
} | ||
module.exports = bglib; |
@@ -0,1 +1,10 @@ | ||
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT | ||
// file at the top-level directory of this distribution. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
function getErrorFromCode(errorCode) { | ||
@@ -2,0 +11,0 @@ var e = new BGLibError(); |
@@ -0,1 +1,10 @@ | ||
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT | ||
// file at the top-level directory of this distribution. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
var errorHandler = require('./bglib-errors'); | ||
@@ -179,2 +188,9 @@ var dataParser = require('ble-ad-parser'); | ||
/*************************************** | ||
* DFU Events | ||
****************************************/ | ||
var _bgEventDFUBoot = function(params) { | ||
this.version = params.readUInt32LE(0); | ||
} | ||
var Events = { | ||
@@ -210,4 +226,8 @@ // System Events | ||
7: [_bgEventHWIOPortStatus, _bgEventhWSoftTimer, _bgEventHWADCResult], | ||
8: null, | ||
9: [_bgEventDFUBoot] | ||
} | ||
module.exports.Events = Events; |
@@ -0,1 +1,10 @@ | ||
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT | ||
// file at the top-level directory of this distribution. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
var errorHandler = require('./bglib-errors'); | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "bglib", | ||
"version": "0.0.42", | ||
"version": "0.0.43", | ||
"description": "Create and parse packets for the BlueGiga BLE112 and BLE113", | ||
@@ -5,0 +5,0 @@ "main": "bglib.js", |
@@ -0,1 +1,10 @@ | ||
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT | ||
// file at the top-level directory of this distribution. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
// An embarrasingly unexhaustive test of bglib functionality | ||
@@ -2,0 +11,0 @@ var assert = require('assert'); |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
88496
10
1576
1