Skip to content

Commit

Permalink
Merge pull request #3218 from Jackenmen/add_sensor_start_time_to_loca…
Browse files Browse the repository at this point in the history
…l_app_broadcast

Include sensor start time in local app broadcast
  • Loading branch information
jamorham authored Dec 5, 2023
2 parents 5a5681d + 04ddb23 commit 11d77a9
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 11d77a9

Please sign in to comment.