MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / getDeviceName

Method getDeviceName

nodejs_package/brainflow/board_shim.ts:703–714  ·  view source on GitHub ↗
(boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET)

Source from the content-addressed store, hash-verified

701 }
702
703 public static getDeviceName(boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): string
704 {
705 const len = [0];
706 let out = ['\0'.repeat(4096)];
707 const res =
708 BoardControllerDLL.getInstance().getDeviceName(boardId, preset, out, len, out[0].length);
709 if (res !== BrainFlowExitCodes.STATUS_OK)
710 {
711 throw new BrainFlowError (res, 'Could not get device info');
712 }
713 return out[0].substring(0, len[0]);
714 }
715
716 public static getEegNames(boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): string[]
717 {

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected