Skip to content

Commit

Permalink
Include sensor start time in local broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Dec 1, 2023
1 parent 5a5681d commit 04ddb23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public static void sendLocalBroadcast(final BgReading bgReading) {
}

bundle.putInt(Intents.EXTRA_SENSOR_BATTERY, BridgeBattery.getBestBridgeBattery());
bundle.putLong(Intents.EXTRA_SENSOR_STARTED_AT, sensor.started_at);
bundle.putLong(Intents.EXTRA_TIMESTAMP, bgReading.timestamp);

//raw value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public interface Intents {
String EXTRA_BG_SLOPE = "com.eveningoutpost.dexdrip.Extras.BgSlope";
String EXTRA_BG_SLOPE_NAME = "com.eveningoutpost.dexdrip.Extras.BgSlopeName";
String EXTRA_SENSOR_BATTERY = "com.eveningoutpost.dexdrip.Extras.SensorBattery";
String EXTRA_SENSOR_STARTED_AT = "com.eveningoutpost.dexdrip.Extras.SensorStartedAt";
String EXTRA_TIMESTAMP = "com.eveningoutpost.dexdrip.Extras.Time";
String EXTRA_RAW = "com.eveningoutpost.dexdrip.Extras.Raw";
String EXTRA_NOISE = "com.eveningoutpost.dexdrip.Extras.Noise";
Expand Down

0 comments on commit 04ddb23

Please sign in to comment.