arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

getCurrentProfile

This method returns the training profile that is currently loaded for a specific headset.

hashtag
Parameters

Name

Type

Required

Description

hashtag
Result

The result is an object containing these fields:

hashtag
Examples

cortexToken

string

yes

A token returned by authorize.

headset

string

yes

A headset id returned by queryHeadsets.

Name

Type

Description

name

string

The name of the loaded profile, or null if no profile was loaded for this headset.

loadedByThisApp

boolean

true if the profile was loaded by your application, false if it was loaded by another application.

This field was added in Cortex 2.1

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "getCurrentProfile",
    "params": {
        "cortexToken": "xxx",
        "headset": "EPOCPLUS-12341234"
    }
}
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "name": "my profile",
        "loadedByThisApp": true
    }
}