Skip to content

Commit

Permalink
fix: change heart_rate separator char
Browse files Browse the repository at this point in the history
  • Loading branch information
matey97 committed Jul 25, 2022
1 parent 385b698 commit 99b0a2d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void onMessageReceived(MessageEvent messageEvent) {
handleMessage(WearSensor.MAGNETOMETER, messageEvent);
} else if (path.contains("location")) {
handleMessage(WearSensor.LOCATION, messageEvent);
} else if (path.contains("heart-rate")) {
} else if (path.contains("heart_rate")) {
handleMessage(WearSensor.HEART_RATE, messageEvent);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void onMessageReceived(MessageEvent messageEvent) {
handleMessage(WearSensor.MAGNETOMETER, messageEvent);
} else if (path.contains("location")) {
handleMessage(WearSensor.LOCATION, messageEvent);
} else if (path.contains("heart-rate")) {
} else if (path.contains("heart_rate")) {
handleMessage(WearSensor.HEART_RATE, messageEvent);
}
}
Expand Down
Binary file modified src/platforms/android/wearossensors-native.aar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ protected ArrayList<String> getRequiredPermissions() {
@Override
protected MessagingProtocol getProtocol() {
return new MessagingProtocol(
"/heart-rate/start",
"/heart-rate/stop",
"/heart-rate/new-record",
new ResultMessagingProtocol("/heart-rate/ready"),
new ResultMessagingProtocol("/heart-rate/prepare")
"/heart_rate/start",
"/heart_rate/stop",
"/heart_rate/new-record",
new ResultMessagingProtocol("/heart_rate/ready"),
new ResultMessagingProtocol("/heart_rate/prepare")
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void onMessageReceived(MessageEvent event) {
new GyroscopeMessagingHandler(this).handleMessage(event);
} else if (path.contains("magnetometer")) {
new MagnetometerMessagingHandler(this).handleMessage(event);
} else if(path.contains("heart-rate")) {
} else if(path.contains("heart_rate")) {
new HeartRateMessagingHandler(this).handleMessage(event);
} else if (path.contains("location")) {
new LocationMessagingHandler(this).handleMessage(event);
Expand Down

0 comments on commit 99b0a2d

Please sign in to comment.