updateVirtualHeadset

This method lets you update a virtual headset that was previously created by createVirtualHeadset.

Parameters

Name

Type

Required

Description

cortexToken

string

yes

A token returned by authorize

virtualHeadsetId

string

yes

The uuid of the virtual headset you want to update.

name

string

no

See description in createVirtualHeadset

powerOn

boolean

no

See description in createVirtualHeadset

battery

number

no

See description in createVirtualHeadset

cq

object

no

See description in createVirtualHeadset

pm

object

no

See description in createVirtualHeadset

preRecordedSamples

string

no

See description in createVirtualHeadset

mc

object

no

See description in createVirtualHeadset

fe

object

no

See description in createVirtualHeadset

Result

The result is a Virtual headset object.

Examples

Switch on the headset:

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "updateVirtualHeadset",
  "params": {
    "cortexToken": "xxx",
    "virtualHeadsetId": "70e2002f-e4d2-4708-a4d0-8600f2a04842",
    "powerOn": true
  }
}

Change the name, the CQ and the battery level of the headset:

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "updateVirtualHeadset",
  "params": {
    "cortexToken": "xxx",
    "virtualHeadsetId": "70e2002f-e4d2-4708-a4d0-8600f2a04842",
    "name": "My Virtual Insight",
    "battery": 1,
    "cq": {
      "AF3": 0,
      "AF4": 4,
      "Pz": 4,
      "T7": 0,
      "T8": 4
    }
  }
}

Last updated