mentalCommandActiveAction
This method is to get or set the active actions for the mental command detection.
If an action is inactive, then the mental command detection won't detect it anymore. Deactivate an action do not erase its trainings from the profile.
Name | Type | Required | Description |
cortexToken | string | yes | |
status | string | yes | Must be "set" or "get". |
profile | string | no | A profile name. |
session | string | no | |
actions | array of string | no | If the status is "set", this parameter is the list of actions to activate.
You can't activate more than 4 actions. This doesn't include "neutral". |
If the status is "get", then the result is an
array of strings
that is the list of active actions. If the status is "set", then the result is an object with these fields:
Name | Type | Description |
actions | array of strings | The active actions. |
message | string | A success message. |
Request
Response
{
"id": 544314,
"jsonrpc": "2.0",
"method": "mentalCommandActiveAction",
"params": {
"cortexToken": "xxx",
"profile": "cortex-v2-example",
"status": "get"
}
}
{
"id": 544314,
"jsonrpc": "2.0",
"result": [
"neutral",
"push",
"pull"
]
}
Request
Response
{
"id": 411114,
"jsonrpc": "2.0",
"method": "mentalCommandActiveAction",
"params": {
"actions": [
"push"
],
"cortexToken": "xxx",
"session": "1d5d3655-d570-4731-9faf-967bc5440dc5",
"status": "set"
}
}
{
"id": 411114,
"jsonrpc": "2.0",
"result": {
"actions": [
"push"
],
"message": "Set MentalCommand active actions successfully"
}
}
Last modified 3yr ago