Skip to content

Commit 0dafc93

Browse files
author
AJ Keller
committed
ADD: Contstants for noble
1 parent 4f763b3 commit 0dafc93

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.1.5
2+
3+
### Bug Fixes
4+
5+
* Was missing errors in constants used by ganglion and other ble projects.
6+
17
# 0.1.4
28

39
### Bug Fixes

openBCIConstants.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ const errorInvalidData = 'Invalid data - try again';
309309
const errorInvalidType = 'Invalid type - check comments for input type';
310310
const errorMissingRegisterSetting = 'Missing register setting';
311311
const errorMissingRequiredProperty = 'Missing property in JSON';
312+
const errorNobleAlreadyScanning = 'Scan already under way';
313+
const errorNobleNotAlreadyScanning = 'No scan started';
314+
const errorNobleNotInPoweredOnState = 'Please turn blue tooth on.';
312315
const errorTimeSyncIsNull = "'this.sync.curSyncObj' must not be null";
313316
const errorTimeSyncNoComma = 'Missed the time sync sent confirmation. Try sync again';
314317
const errorUndefinedOrNullInput = 'Undefined or Null Input';
@@ -996,6 +999,9 @@ const constantsModule = {
996999
OBCIErrorInvalidType: errorInvalidType,
9971000
OBCIErrorMissingRegisterSetting: errorMissingRegisterSetting,
9981001
OBCIErrorMissingRequiredProperty: errorMissingRequiredProperty,
1002+
OBCIErrorNobleAlreadyScanning: errorNobleAlreadyScanning,
1003+
OBCIErrorNobleNotAlreadyScanning: errorNobleNotAlreadyScanning,
1004+
OBCIErrorNobleNotInPoweredOnState: errorNobleNotInPoweredOnState,
9991005
OBCIErrorTimeSyncIsNull: errorTimeSyncIsNull,
10001006
OBCIErrorTimeSyncNoComma: errorTimeSyncNoComma,
10011007
OBCIErrorUndefinedOrNullInput: errorUndefinedOrNullInput,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openbci-utilities",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "The official utility package of Node.js SDK for the OpenBCI Biosensor Boards.",
55
"main": "index.js",
66
"scripts": {

test/openBCIConstants-test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,15 @@ describe('OpenBCIConstants', function () {
18911891
it('errorMissingRequiredProperty', function () {
18921892
assert.equal(k.OBCIErrorMissingRequiredProperty, 'Missing property in JSON');
18931893
});
1894+
it('errorNobleAlreadyScanning', function () {
1895+
assert.equal(k.OBCIErrorNobleAlreadyScanning, 'Scan already under way');
1896+
});
1897+
it('errorNobleNotAlreadyScanning', function () {
1898+
assert.equal(k.OBCIErrorNobleNotAlreadyScanning, 'No scan started');
1899+
});
1900+
it('errorNobleNotInPoweredOnState', function () {
1901+
assert.equal(k.OBCIErrorNobleNotInPoweredOnState, 'Please turn blue tooth on.');
1902+
});
18941903
it('errorTimeSyncIsNull', function () {
18951904
assert.equal(k.OBCIErrorTimeSyncIsNull, "'this.sync.curSyncObj' must not be null");
18961905
});

0 commit comments

Comments
 (0)