createSession
Last updated
Last updated
This method is to open a session with an EMOTIV headset.
To open a session with a headset, the status of the headset must be "connected". If the status is "discovered", then you must call to connect the headset. You cannot open a session with a headset connected by a USB cable. You can use to check the status and connection type of the headset.
You can use to activate or close a session.
See for details.
Name
Type
Required
Description
cortexToken
string
yes
status
string
yes
Must be "open" or "active".
headset
string
no
If the status is "open", then the session won't be activated. You can activate the session later by calling .
The result is a representing the created session.
Open a session.
Open a session and activate it.
A token returned by .
A headset id returned by . If you omit this parameter, then Cortex will use the first connected headset.