Skip to content

Commit 9b42214

Browse files
committed
DEV-221 DEV-270 minor update SensorMapsExample & update log print
1 parent 0f135a7 commit 9b42214

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

ShimmerDriver/src/main/java/com/shimmerresearch/grpc/GrpcBLERadioByteTools.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public int startServer() throws Exception {
101101
try (BufferedReader reader = new BufferedReader(new InputStreamReader(runningProcess.getInputStream()))) {
102102
String line;
103103
while ((line = reader.readLine()) != null) {
104-
System.out.println(line);
104+
System.out.println("[BLEGrpcServer] " + line);
105105
}
106106
} catch (IOException e) {
107107
// TODO Auto-generated catch block

ShimmerPCBasicExamples/src/main/java/com/shimmerresearch/simpleexamples/SensorMapsExample.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ public class SensorMapsExample extends BasicProcessWithCallBack {
9090
* @wbp.parser.entryPoint
9191
*/
9292
public void initialize() {
93+
//Set the default port to 50052, this is used if the software cannot start the gRPC server automatically
94+
BasicShimmerBluetoothManagerPc.mGRPCPort = 50052;
95+
9396
frame = new JFrame("Shimmer SensorMaps Example");
9497
frame.setBounds(100, 100, 1200, 591);
9598
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

0 commit comments

Comments
 (0)