UNPKG

emotiv-ts

Version:

A Typescript library that wraps the Cortex API functionalities to communicate with Emotiv headsets

14 lines (13 loc) 420 B
import { CortexRequest } from "../../internal/cortex-request"; import { Requests } from "../../../enums/internal/emotiv.requests"; export class ControlDevice extends CortexRequest { constructor(headsetId) { super(); this.id = Requests.CONTROL_DEVICE; this.method = "controlDevice"; this.params = { "command": "connect", "headset": headsetId }; } }