updateSession
This method is to activate or close a session. See Sessions for details.
Parameters
Result
The result is a session object representing the updated session.
Examples
Activate a session
{
"id": 1,
"jsonrpc": "2.0",
"method": "updateSession",
"params": {
"cortexToken": "xxx",
"session": "38fef6d7-979b-420b-aa25-dd60ef5edc02",
"status": "active"
}
}
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"id": "38fef6d7-979b-420b-aa25-dd60ef5edc02",
"status":"activated",
...
}
}
Close a session
{
"id": 1,
"jsonrpc": "2.0",
"method": "updateSession",
"params": {
"cortexToken": "xxx",
"session": "38fef6d7-979b-420b-aa25-dd60ef5edc02",
"status": "close"
}
}
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"appId": "com.jon.snow.winterfell-app",
"headset": {
"connectedBy": "dongle",
"customName": "",
"dongle": "6ff",
"firmware": "925",
"id": "INSIGHT-5A68XXXX",
"motionSensors": [
"GYROX",
"GYROY",
"GYROZ",
"ACCX",
"ACCY",
"ACCZ",
"MAGX",
"MAGY",
"MAGZ"
],
"sensors": [
"AF3",
"T7",
"Pz",
"T8",
"AF4"
],
"settings": {
"eegRate": 128,
"eegRes": 14,
"memsRate": 128,
"memsRes": 14,
"mode": "UNKNOWN"
},
"status": "connected"
},
"id": "38fef6d7-979b-420b-aa25-dd60ef5edc02",
"license": "xxx",
"owner": "jon.snow",
"recordIds": [
"d8fe7658-71f1-4cd6-bb5d-f6775b03438f"
],
"recording": false,
"started": "2019-06-06T11:41:53.168+07:00",
"status": "closed",
"stopped": "2019-06-06T11:42:23.531+07:00",
"streams": []
}
}