@@ -143,6 +143,8 @@ public static class BoardControllerLibrary64
143
143
[ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
144
144
public static extern int config_board ( string config , byte [ ] response , int [ ] len , int board_id , string input_json ) ;
145
145
[ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
146
+ public static extern int config_board_with_bytes ( byte [ ] bytes , int len , int board_id , string input_json ) ;
147
+ [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
146
148
public static extern int set_log_file_board_controller ( string log_file ) ;
147
149
[ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
148
150
public static extern int get_sampling_rate ( int board_id , int preset , int [ ] sampling_rate ) ;
@@ -231,6 +233,8 @@ public static class BoardControllerLibrary32
231
233
[ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
232
234
public static extern int config_board ( string config , byte [ ] response , int [ ] len , int board_id , string input_json ) ;
233
235
[ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
236
+ public static extern int config_board_with_bytes ( byte [ ] bytes , int len , int board_id , string input_json ) ;
237
+ [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
234
238
public static extern int set_log_file_board_controller ( string log_file ) ;
235
239
[ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
236
240
public static extern int get_sampling_rate ( int board_id , int preset , int [ ] sampling_rate ) ;
@@ -456,6 +460,19 @@ public static int config_board (string config, byte[] str, int[] len, int board_
456
460
return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
457
461
}
458
462
463
+ public static int config_board_with_bytes ( byte [ ] bytes , int len , int board_id , string input_json )
464
+ {
465
+ switch ( PlatformHelper . get_library_environment ( ) )
466
+ {
467
+ case LibraryEnvironment . x64 :
468
+ return BoardControllerLibrary64 . config_board_with_bytes ( bytes , len , board_id , input_json ) ;
469
+ case LibraryEnvironment . x86 :
470
+ return BoardControllerLibrary32 . config_board_with_bytes ( bytes , len , board_id , input_json ) ;
471
+ }
472
+
473
+ return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
474
+ }
475
+
459
476
public static int add_streamer ( string streamer , int preset , int board_id , string input_json )
460
477
{
461
478
switch ( PlatformHelper . get_library_environment ( ) )
0 commit comments