File tree Expand file tree Collapse file tree
ShimmerDriverPC/src/main/java/com/shimmerresearch/tools/bluetooth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,17 +39,28 @@ public class BasicShimmerBluetoothManagerPc extends ShimmerBluetoothManager {
3939 List <String > shimmer3BleMacIdList = new ArrayList <String >();
4040 List <VerisenseDevice > verisenseDeviceList = new ArrayList <VerisenseDevice >();
4141 List <ShimmerGRPC > shimmer3BleDeviceList = new ArrayList <ShimmerGRPC >();
42+ private boolean mInternalUse = true ;
4243 public static int mGRPCPort ;
44+
4345 public BasicShimmerBluetoothManagerPc () {
44- GrpcBLERadioByteTools grpcTool = new GrpcBLERadioByteTools ();
46+ startGrpc ();
47+ }
48+
49+ public BasicShimmerBluetoothManagerPc (boolean isInternalUse ) {
50+ if (isInternalUse ) {
51+ startGrpc ();
52+ }
53+ }
54+
55+ private void startGrpc () {
4556 try {
57+ GrpcBLERadioByteTools grpcTool = new GrpcBLERadioByteTools ();
4658 mGRPCPort = grpcTool .startServer ();
47-
48- } catch (Exception e2 ) {
49- // TODO Auto-generated catch block
50- e2 .printStackTrace ();
59+ } catch (Exception e ) {
60+ e .printStackTrace ();
5161 }
5262 }
63+
5364 public void setPathToVeriBLEApp (String path ) {
5465 mPathToVeriBLEApp = path ;
5566 }
You can’t perform that action at this time.
0 commit comments