Skip to content

Commit

Permalink
weather: Add ID to every event
Browse files Browse the repository at this point in the history
Make sure there is only 1 of each event with the same type and ID.

This is a BREAKING CHANGE for the WeatherService API, and as such a new
EventID field will need to be added to the CBOR data sent by companion
apps.
  • Loading branch information
FintasticMan committed Oct 22, 2023
1 parent 476b58e commit 4cf494e
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 107 deletions.
4 changes: 4 additions & 0 deletions src/components/ble/weather/WeatherData.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ namespace Pinetime {
* If there's a newer event of the same type then it overrides this one, even if it hasn't expired
*/
uint32_t expires;
/**
* Unique ID for this event
*/
uint16_t eventID;
/**
* What type of weather-related event
*/
Expand Down
Loading

0 comments on commit 4cf494e

Please sign in to comment.