Skip to content

Commit

Permalink
Merge pull request #101 from OpenBCI/development
Browse files Browse the repository at this point in the history
v2.1.0
  • Loading branch information
retiutut authored Sep 20, 2019
2 parents 85d94af + a1f23e0 commit 8725d48
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.1.0

### Bug Fixes

- Return cyton firmware version in wifi connect response

# v2.0.9

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "openbci-electron-hub",
"productName": "OpenBCIHub",
"description": "OpenBCIHub",
"version": "2.0.9",
"version": "2.1.0",
"author": "AJ Keller <[email protected]>",
"copyright": "© 2019, OpenBCI inc.",
"homepage": "http://openbci.com",
Expand Down
12 changes: 11 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,12 +1022,22 @@ const _connectWifi = (msg, client) => {
.then(() => {
//TODO: Finish this connect
if (verbose) console.log("connect success");
if (wifi.getBoardType() == k.OBCIBoardGanglion) {
return Promise.resolve('');
} else {
// Query cyton firmware version to report in connect response.
return wifi.write('V');
}
})
.then((version) => {
// client.write(`${kTcpCmdConnect},${kTcpCodeSuccess}${kTcpStop}`);
writeCodeToClientOfType(
client,
kTcpTypeConnect,
kTcpCodeSuccess,
{}
{
firmware: version.trim()
}
);
// wifi.on(k.OBCIEmitterRawDataPacket, console.log);
wifi.on("sample", sampleFunction.bind(null, client));
Expand Down

0 comments on commit 8725d48

Please sign in to comment.