aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ble
Commit message (Collapse)AuthorAgeFilesLines
* Simple Weather ServiceJean-François Milants2023-12-231-1/+1
| | | | | Fix ToUInt64() in SimpleWeatherService.cpp. Fix typo in SimpleWeatherService.md.
* Simple Weather ServiceJean-François Milants2023-12-232-21/+14
| | | | Fix code formatting.
* Simple Weather ServiceJean-François Milants2023-12-232-16/+31
| | | | Store temperatures as int16_t (instead of uint8_t previously). The temperature is expressed in °C * 100.
* Simple Weather ServiceJean-François Milants2023-12-232-14/+16
| | | | Code improvements : icon fields are now typed as Icons, move the location string when creating a new instance of CurrentWeather, fix SimpleWeatherService::CurrentWeather::operator== (location was missing from the comparison).
* Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-231-6/+6
| | | | | Remove unused Weather debug app. Fix formatting in SimpleWeatherService.cpp.
* Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-232-25/+15
| | | | | | | Add missing icons (heavy clouds, thunderstorm, snow). Remove unneeded comparison operator (!=), improve conversion of Timestamp and MessageType, order includes. Fix typo in documentation. Remove not related change in StopWatch.
* Simple Weather Service : fix out of bounds access while creating Forecast ↵Jean-François Milants2023-12-232-3/+9
| | | | instance.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-232-49/+60
| | | | Fix recovery firmware and code formatting.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-236-1171/+287
| | | | | | | | | | This new implementation of the weather feature provides a new BLE API and a new weather service. The API uses a single characteristic that allows companion apps to write the weather conditions (current and forecast for the next 5 days). The SimpleWeather service exposes those data as std::optional fields. This new implementation replaces the previous WeahterService. The API is documented in docs/SimpleWeatherService.md.
* weather: Fix GetCurrent* functions returning future events (#1879)FintasticMan2023-10-061-9/+18
|
* NotificationManager.h: Reorder notification struct fields to allow easier ↵Max Friedrich2023-07-091-3/+4
| | | | | | | | | | | | | | creation. (#1774) This commit changes the order for the notification struct fields to allow the creation of notifications using a string literal. ```cpp NotificationManager::Notifiation notification { "String literal with notification text", 42, NotificationManager::Categories::SimpleAlert }; ``` Co-authored-by: minacode <minamoto9@web.de>
* WeatherService: const DateTimeController referenceRiku Isokoski2023-03-192-3/+3
|
* HeartRateService: Remove SystemTask dependencyRiku Isokoski2023-03-193-11/+8
|
* MotionService: Remove SystemTask dependencyRiku Isokoski2023-03-193-12/+9
|
* NavigationService: Remove unused SystemTask refRiku Isokoski2023-03-193-11/+2
|
* WeatherService: Remove unused SystemTask referenceRiku Isokoski2023-03-193-10/+3
|
* MusicService: Remove SystemTask dependencyRiku Isokoski2023-03-193-10/+8
|
* date: Remove date libRiku Isokoski2023-02-251-0/+1
| | | | DateTimeController can provide everything we need.
* DateTimeController: Remove SetTime tick parameterRiku Isokoski2023-02-253-7/+2
| | | | | | The systick doesn't need to be updated when setting time. Also removed unused nrf_rtc.h includes.
* src: Enable unused parameter warningRiku Isokoski2023-01-2424-72/+70
| | | | | | Fix warnings. Some clang-formatting was necessary. DebugPins is unused and was removed.
* Format header filesFinlay Davidson2023-01-0914-0/+38
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Update clang-{format,tidy} to 14Finlay Davidson2023-01-042-0/+2
| | | | | Also add configuration options only available in 13 and 14. Fixes warning about -fstack-usage in clang-tidy check.
* Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski2022-12-181-1/+1
| | | | | Don't enable coding conventions from unrelated projects. Only enable generic checks.
* BLE CTS: fixed signedness of timezoneuli2022-11-251-2/+2
|
* WeatherService daily min/max temperature fixes (#1455)kieranc2022-11-251-6/+8
| | | | * Min/Max function fixes * Faster way to calculate day start
* add CTS local time characteristic and use it to provide UTC in ↵uli2022-11-114-53/+99
| | | | DateTimeController
* Edit all occurences of "watchface" to "watch face"mashuptwice2022-10-101-3/+3
|
* Dismiss notifications by swiping rightSimon Willshire2022-06-282-61/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new interface `NotificationManager::Dismiss(id)` to delete a notification with the specified `id`. The animate the notification dismiss the `RightAnim` transition to a black screen is used. After the dismiss the new message is swiped in from below or above. If we dismiss the oldest message (when we are at 5/5, or 3/3), then the new message after a dismiss should appear to come from below. Otherwise (when we are at 2/3) the new message after a dismiss should appear to come from above. Rework the index code to show the index of the currently viewed notification. Instead of calculating the index relative to the oldest `id` introduce a new interface `NotificationManager::IndexOf(id)`. This is done because the `id` of the notifications in the buffer aren't continuous anymore (as some messages could have been dismissed). Rework notification ring buffer to have a beginIdx and a size internally to make the dismissal of notifications easier. Fixes: https://github.com/InfiniTimeOrg/InfiniTime/issues/176 Co-authored-by: Simon Willshire <me@simonwillshire.com> Co-authored-by: Reinhold Gschweicher <pyro4hell@gmail.com>
* Fix various typosluz paz2022-06-052-7/+7
| | | | Found via `codespell -q 3 -S ./src/libs -L ans,doubleclick,trough`
* Apply clang-format to all C++ filesFinlay Davidson2022-06-0510-52/+83
|
* Replace C-style casts with static_castFinlay Davidson2022-06-051-8/+10
|
* Make functions const againRiku Isokoski2022-04-252-2/+2
|
* Update track progress in MusicService. Fix #127Riku Isokoski2022-04-252-2/+14
|
* Merge branch 'develop' into remove-nm-referenceMax Friedrich2022-04-199-37/+91
|\
| * New changes according to the review : Priority 0 for display, 1 for system, ↵Jean-François Milants2022-03-211-0/+1
| | | | | | | | timer and ble host, and 2 for ble LL
| * Music app : when title/track name are truncated, add an ellipsis at the end ↵Jean-François Milants2022-03-211-5/+13
| | | | | | | | of the strings.
| * Add missing space in if expression.Jean-François Milants2022-03-211-1/+1
| |
| * Limit the size of the track and album name received by MusicService. This ↵Jean-François Milants2022-03-211-0/+7
| | | | | | | | should work around this bug : https://github.com/InfiniTimeOrg/InfiniTime/issues/825 and prevent heap over-allocation.
| * Add missing nrf_log.h includes shadowed by SystemMonitor.hReinhold Gschweicher2022-03-085-0/+5
| | | | | | | | | | | | Some components were missing a `nrf_log.h` include. This missing include was accidentally provided by the SystemMonitor.h header, which was included by Systemtask.h
| * Merge branch 'airplane-mode' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants2022-02-204-41/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | into evergreen22-airplane-mode Apply a few changes that were requested in the PR during the review. # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/Messages.h # src/displayapp/screens/settings/Settings.cpp
| * Merge branch 'airplane-mode' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants2022-02-204-32/+57
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into evergreen22-airplane-mode # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/Messages.h # src/displayapp/screens/settings/Settings.cpp
| | * Add airplane mode featureJames A. Jerkins2021-12-234-32/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements 'Airplane mode' feature to disable and enable bluetooth/ble Adds airplaneMode as a non-persisted setting Adds a setting menu for switching airplane mode on and off Displays an airplane symbol on the Digital watch face and the PineTimeStyle watch face when airplane mode is enabled Always enables bluetooth/ble on boot (disable airplane mode) Alphabetizes the settings menu options Style cleanups Closes #632
* | | remove unused referenceminacode2022-02-162-2/+0
|/ /
* / Fix biased BLE pass key generationZorvalt2022-02-121-1/+22
|/
* Optional secure pairing with a passkeyJames A. Jerkins2021-12-213-6/+4
| | | | | Support passkey pairing when requested by the central Fix a comment and reorder warning
* Fix Failed rebase.Tim Keller2021-12-102-5/+3
|
* Fix more initializersTim Keller2021-12-101-12/+10
|
* Fix large file support that broke due to a refactor.Tim Keller2021-12-101-1/+1
|
* Force variable cleanup because LFS makes assumptions about variable ↵Tim Keller2021-12-101-7/+5
| | | | initialization state
* Attempt at a more robust File handlerTim Keller2021-12-101-8/+15
|