(boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET)
| 727 | } |
| 728 | |
| 729 | public static getBoardDescr(boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): Object |
| 730 | { |
| 731 | const len = [0]; |
| 732 | let out = ['\0'.repeat(16000)]; |
| 733 | const res = |
| 734 | BoardControllerDLL.getInstance().getBoardDescr(boardId, preset, out, len, out[0].length); |
| 735 | if (res !== BrainFlowExitCodes.STATUS_OK) |
| 736 | { |
| 737 | throw new BrainFlowError (res, 'Could not get device info'); |
| 738 | } |
| 739 | return JSON.parse(out[0].substring(0, len[0])); |
| 740 | } |
| 741 | } |
nothing calls this directly
no test coverage detected