getBoardType()#152 (thanks @nateGeorge)
this.infoobject to only have firmware version and number of missed packets. Code dependent on this.info should switch to using
sampleRate()for accurate board info!
index.jsfile allows for ES6 destructing
Cytonto follow new naming convention. Simply change: ```ecmascript 6 const OpenBCIBoard = require('openbci').OpenBCIBoard; const ourBoard = new OpenBCIBoard();
```ecmascript 6 const Cyton = require('openbci').Cyton; const ourBoard = new Cyton();
simulatorDaisyModuleCanBeAttached- Boolean, deafults to true, allows the simulation of the a hot swapped daisy board or simulates a misinformed module.
hardSet- for when the module detects the board is not configured as the options for the module intended and tries to save itself. i.e. when the
trueand a soft reset message is parsed and the module determines that a daisy was not detected, the module will emit
hardSetthen send an attach daisy command to recover. Either
errorwill be emitted if unable to attach or
readywill be emitted if success.
.overrideInfoForBoardType()to elevate it's dangerous nature.
.hardSetBoardType()and input changed from numerical to string: 8 and 16 to
$$$) was dumped by preserving the poriton after the EOT for further decomposition.
simulatorLatencyTimer. Together, these enable a more realistic serial port simulation, mimicking different potential user computer systems.
debuggives a live dump of serial traffic on the console if enabled
.isConnected()to check if communications are active.
.isStreaming()to check if samples are coming from the board.
errorproperty, null on good syncs, error description on bad syncs.
.connectedproperty has been removed, replaced by
.isConnected(). Removed from docs.
.streamingproperty has been removed, replaced by
.isStreaming(). Removed from docs.
timeOffsetMasterto object emitted when bad time sync.
syncObjwhich is a running average across sync attempts.
streamingwere not set in constructor
droppedPacketcan be added to get an array of dropped packet numbers in the case of the dropped packet event.
.time()which should be used in time syncing
.syncClocksFull()which should be used for immediate consecutive time syncs
validproperty for if the sync was done
syncedevent to README.md
.sntpNow()because it was replaced by
The second major release for the OpenBCI Node.js SDK brings major changes, improvements and stability, on top of a push to increase automated test coverage.
.infoproperty which contains verified board information parsed from the OpenBCI's
eotevent that is emitted when a user sends a command that results in an EOT ("$$$") being sent from the board
closeevents from serialport now emtted events users can subscribe to.
openbci-sdkanymore, now called
.accelDataarray instead of
parseRawPacket()is now called
readyevent only triggered after soft reset.
eotevent emitted in all other conditions resulting in the board sending EOT ("$$$")
connect()no longer rejects on
errorevent from the serialport.
got herelog from
.numberOfChannels()now uses the info object, which is set in the constructor and on the return message from
.sampleRate()now uses the info object, which is set in the constructor and on the return message from
rawDataPacketnot being emitted
.sntpNow()function to get ntp time.
impedancesobject that is an array of impedances for each