List of methods related to data stream subscription available in the base Cortex class
A data stream is a continuous flow of information specific to a session that you have opened with a headset. In this implementation, the data stream is split into two main chunks:
Mental Commands
Mental commands are blocks of Information about what category of imagined activity the current headset data has been categorized to, and at which strength (0.0 - 1.0). This stream is updated several times a second and can be used as an input by treating each action other than neutral as a button press. Action names are constrained to the set of Mental Command Names, and only four can be active for detection at once.
Device info contains information about battery level, signal and contact quality for a device. It is important to display this when fitting a headset, ideally showing the nodes visually so that they can be adjusted live. Contact quality is provided according to the 10-10 System.
Returns true if a data stream currently exists for the headset, used to check if a headset is already in use.
Parameter
Description
headsetId
id code of the target headset
Subscribe Mental Commands
Subscribe to mental commands received through the data stream for a specified headset. Returns true if subscription was successful.
Parameter
Description
headsetId
id code of the target headset
action
action to call when new data is received, can be a method or delegate
Example:
Unsubscribe Mental Commands
Unsubscribe from data stream mental commands. Returns true if successful.
Subscribe Device Info
Subscribe to device info received through the data stream of a specified headset. Device info includes battery level and contact quality for the headset. Returns true if subscription was successful.
Parameter
Description
headsetId
id code of the target headset
action
action to call when new data is received, can be a method or delegate
Unsubscribe Device Info
Unsubscribe from data stream device info. Returns true if successful.
Subscribe to system events through the data stream of a specifies headset. These events are related to the training of mental commands and also provided as events in the training handler. They are included here due to the structure of the base API. Returns true if subscription was successful.
Parameter
Description
headsetId
id code of the target headset
action
action to call when new data is received, can be a method or delegate