Skip to content

Commit e89989a

Browse files
author
AJ Keller
authored
Merge pull request #16 from aj-ptw/master
FIX: Bugs with daisy
2 parents ce3fe66 + fc94e40 commit e89989a

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v0.2.2
1+
# v0.3.0
22

33
Docs for all!!
44

@@ -8,6 +8,14 @@ Docs for all!!
88
* `CONTRIBUTING.md` added to describe how people should contribute
99
* `ROADMAP.md` added to outline a roadmap for project
1010

11+
### Bug Fixes
12+
13+
* Bump utilities to 0.2.7 to get patch for wifi accel data and stop byte
14+
15+
### Breaking Changes
16+
17+
* Removed index.js to conform to other cyton and ganglion modules
18+
1119
# v0.2.1
1220

1321
### Bug Fixes

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ For initializing with options, such as verbose print outs:
178178

179179
```js
180180
const Wifi = require('openbci-wifi');
181-
const ourBoard = new Cyton({
181+
const wifi = new Wifi({
182182
verbose: true
183183
});
184184
```
@@ -187,14 +187,14 @@ or if you are using ES6:
187187
```js
188188
import Wifi from 'openbci-wifi';
189189
import { Constants } from 'openbci-utilities';
190-
const ourBoard = new Cyton();
191-
ourBoard.connect(Constants.OBCISimulatorPortName);
190+
const wifi = new Wifi();
191+
wifi.connect("OpenBCI-2114");
192192
```
193193

194194
To debug, it's amazing, do:
195195
```js
196-
const Cyton = require('openbci-cyton');
197-
const ourBoard = new Cyton({
196+
const Wifi = require('openbci-wifi');
197+
const wifi = new Wifi({
198198
debug: true
199199
});
200200
```
@@ -217,7 +217,7 @@ The power of this module is in using the sample emitter, to be provided with sam
217217
To get a 'sample' event, you need to:
218218
-------------------------------------
219219
1. Install the 'sample' event emitter
220-
2. Call [`.searchToStream(serialPortName)`](#Wifi-connect)
220+
2. Call [`.searchToStream(_options_)`](#Wifi-connect)
221221
```js
222222
const Wifi = require('openbci-wifi');
223223
let wifi = new Wifi({

examples/getStreaming/getStreaming.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let wifi = new Wifi({
1818
debug: debug,
1919
verbose: verbose,
2020
sendCounts: false,
21-
latency: 10000
21+
latency: 20000
2222
});
2323

2424
let counter = 0;
@@ -28,7 +28,7 @@ let MAX_SAMPLE_NUMBER = 255;
2828

2929
const sampleFunc = (sample) => {
3030
try {
31-
console.log(JSON.stringify(sample));
31+
// console.log(JSON.stringify(sample));
3232
if (sample.valid) {
3333
counter++;
3434
if (sampleRateCounterInterval === null) {

index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "openbci-wifi",
3-
"version": "0.2.2",
4-
"description": "The official wifi package of Node.js SDK for the OpenBCI/Push The World Wifi SHeild for Biosensor Boards.",
5-
"main": "index.js",
3+
"version": "0.3.0",
4+
"description": "The official SDK for the OpenBCI/Push The World Wifi Shield connected to either OpenBCI Cytons or Ganglions.",
5+
"main": "openBCIWifi.js",
66
"scripts": {
77
"test": "semistandard | snazzy && mocha test",
88
"test-cov": "istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec && codecov"
@@ -22,7 +22,7 @@
2222
"ip": "^1.1.5",
2323
"lodash": "^4.16.6",
2424
"node-ssdp": "^3.2.1",
25-
"openbci-utilities": "^0.2.4",
25+
"openbci-utilities": "^0.2.7",
2626
"safe-buffer": "^5.1.1"
2727
},
2828
"directories": {

0 commit comments

Comments
 (0)