(boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET)
| 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 | { |
nothing calls this directly
no test coverage detected