arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

mentalCommandActionSensitivity

This method get or set the sensitivity of the 4 active mental command actions.

Check out the usage in our BCIarrow-up-right app.

hashtag
Parameters

Name

You must set one of these 2 parameters: profile or session. for details.

The array values contains the sensitivity of each active actions. The order of the values must follow the order of the active actions, as returned by .

hashtag
Result

If the status is "get", then the result is an array of 4 numbers. If the status is "set", then the result is a success message.

hashtag
Examples

hashtag
Get

hashtag
Set

Type

Required

Description

cortexToken

string

yes

A token returned by .

status

string

yes

Must be "get" or "set".

profile

string

no

A profile name.

session

string

no

A session id returned by .

values

array of 4 numbers

no

If the status is "set", this parameters is the new sensitivities. Each value must be between 1 and 10. Bigger number indicates higher sensitivity.

Read this
mentalCommandActiveAction
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "mentalCommandActionSensitivity",
    "params": {
        "cortexToken": "xxx",
        "profile": "cortex-v2-example",
        "status": "get"
    }
}
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": [5,5,5,5]
}
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "mentalCommandActionSensitivity",
    "params": {
        "cortexToken": "xxx",
        "session": "1d5d3655-d570-4731-9faf-967bc5440dc5",
        "status": "set",
        "values": [5,7,5,5]
    }
}
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": "success"
}
authorize
createSession