aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ble
Commit message (Collapse)AuthorAgeFilesLines
...
* | Whoops, fixed a wrong typeAvamander2021-12-041-2/+2
| |
* | Added a few helper functionsAvamander2021-12-042-4/+59
| |
* | Improved documentationAvamander2021-12-041-3/+7
| |
* | Improved documentationAvamander2021-12-041-0/+20
| |
* | Removed an instance of shadowingAvamander2021-12-041-4/+4
| |
* | Clarified a few commentsAvamander2021-12-041-5/+6
| |
* | Specified how values should be interpreted betterAvamander2021-12-041-2/+7
| |
* | Added new precipitation and obscuration typesAvamander2021-12-041-2/+12
| |
* | Fixed an incorrect decode in HumidityAvamander2021-12-041-1/+1
| |
* | Implemented parsing of all defined weather data typesAvamander2021-12-041-19/+181
| |
* | Improved UI and fixed a bugAvamander2021-12-041-10/+11
| |
* | Bunch of bugs fixed, improved error handling, debug UI additionAvamander2021-12-042-68/+90
| |
* | Improved error handling and fixed incompatibility with co.nstant.in:cbor libraryAvamander2021-12-041-3/+6
| |
* | Removed versioning because it's not necessaryAvamander2021-12-041-8/+1
| |
* | Changed UUID so it wouldn't conflict with MotionAvamander2021-12-041-3/+3
| |
* | Fixed a few compilation errors, fixed UUID.Avamander2021-12-043-4/+4
| |
* | Implemented a few functions.Avamander2021-12-043-26/+84
| |
* | Few formatting fixesAvamander2021-12-042-2/+2
| |
* | Started initial work on the UIAvamander2021-12-042-41/+48
| |
* | Brace style and whitespace fixesAvamander2021-12-042-2/+2
| |
* | Fixed a few bugs, enabled UsefulBuf library optimizationsAvamander2021-12-044-24/+42
| |
* | Minor style improvementAvamander2021-12-041-1/+2
| |
* | Skeleton of the receiving logicAvamander2021-12-043-76/+145
| |
* | Initial Weather service skeletonAvamander2021-12-045-0/+689
|/
* Merge branch 'develop' into motionservice_fix_typo_in_includeJF2021-11-2820-37/+38
|\
| * Merge branch 'restructure_includes' of ↵Jean-François Milants2021-11-2820-35/+36
| |\ | | | | | | | | | | | | | | | | | | | | | https://github.com/NeroBurner/InfiniTime into NeroBurner-restructure_includes # Conflicts: # doc/contribute.md # src/displayapp/screens/BatteryInfo.h
| | * Move up file header include to topReinhold Gschweicher2021-11-151-1/+1
| | |
| | * Add missing standard includesReinhold Gschweicher2021-11-151-0/+1
| | |
| | * Update includes to to be relative to src directoryReinhold Gschweicher2021-11-1519-35/+35
| | | | | | | | | | | | | | | | | | | | | Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
| * | fix Motion Service UUID in doc and code commentsmabuch2021-11-151-2/+2
| |/
* / MotionService: fix not needed '/' in includeReinhold Gschweicher2021-10-301-1/+1
|/
* Motion service : fix step notifications that were sent as a single byte ↵Jean-François Milants2021-10-262-2/+2
| | | | instead of 4 (uint32_t).
* Add mention to Call characteristic (which was missing in the doc) and change ↵Jean-François Milants2021-10-201-1/+1
| | | | the UUID of the new Motion service from 00020000-* to 00030000-*.
* Enable/disable notifications for motion service.Jean-François Milants2021-10-171-0/+3
|
* Add MotionService : expose step count and RAW X/Y/Z values to the host.Jean-François Milants2021-10-174-2/+171
|
* MotionService : fix typo and characteristic array size + send notification ↵Jean-François Milants2021-10-173-3/+30
| | | | only if the host subscribed to them.
* Merge pull request #522 from jonvmey/fix-nav-uuid-docsJF2021-10-092-41/+21
|\ | | | | Fix Navigation Service UUID docs
| * Move callback function into anonymous namespaceJonathan Vander Mey2021-07-241-5/+5
| |
| * Update nav service UUID macro to constexpr functionsJonathan Vander Mey2021-07-242-28/+20
| |
| * Set navigation service id is base UUID macroJonathan Vander Mey2021-07-242-13/+1
| | | | | | | | | | Avoids the need to copy the same ID into every characteristic UUID genereated from it.
| * Update Navigation UUID documentationJonathan Vander Mey2021-07-241-1/+1
| | | | | | | | | | | | Fixed mismatch between the service and characteristic IDs in the navigation service comments and documentation. They had old values not reflecting the current code and changes in doc/ble.md
* | Merge pull request #524 from jonvmey/ble-uuid-c-castsJF2021-10-0910-63/+54
|\ \ | | | | | | Remove unnecessary C-style casts with BLE UUIDs
| * | Remove unnecessary C-style casts with BLE UUIDsJonathan Vander Mey2021-07-2410-63/+54
| |/ | | | | | | | | | | Instead of casting the UUID object to the ble_uuid_t* used throughout the NimBLE API just pass the address of the ble_uuid_t member that's at the start of each of the UUID structs.
* | Remove static declartion on batteryValue preventing read attribute from ↵Tim Keller2021-10-021-1/+1
| | | | | | | | updating.
* | Merge branch 'develop' into disable_notif_onlyRiku Isokoski2021-09-142-45/+87
|\ \
| * \ Merge branch 'refactor_adv' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants2021-09-132-45/+87
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | into evergreen22-refactor_adv # Conflicts: # src/components/ble/NimbleController.cpp
| | * | Advertise fast for at least 30 secs then slow downJames A. Jerkins2021-09-052-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On power up, advertise aggressively for at least 30 seconds then switch to a longer interval to conserve battery life. This fast/slow pattern is designed to balance connection response time and battery life. When a disconnect event is received restart the fast/slow pattern. When a failed connect event is received, restart the fast/slow pattern. When the screen is activated and ble is not connected, restart the fast/slow pattern. This pattern is consistent with Apple's BLE developer standards (QA 1931).
| | * | Revert "Linear decrease of advert rate to conserve battery"James A. Jerkins2021-09-052-6/+0
| | | | | | | | | | | | | | | | This reverts commit c32ba844e04017a3fd31444c384deb3542bd76be.
| | * | Linear decrease of advert rate to conserve batteryJames A. Jerkins2021-09-042-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Start advertising aggressively when powered on then slow down linearly over 75 seconds. This will conserve battery by not advertising rapidly the whole time we are seeking a connection. The slowest rate is approximately once every 4.5 seconds to balance responsiveness and battery life. We use a fixed advertising duration of 5 seconds and start with a 62.5 ms advertising interval. Every 5 seconds (the advertising duration) we step up to a larger advertising interval (slower advertising). We continue to increase the advertising interval linearly for 75 seconds from the start of advertising. At 75 seconds we have an advertising interval of 4.44 seconds which we keep until connected. A reboot will restart the sequence. When we receive a disconnect event we restart the sequence with fast advertising and then slow down as described above. Note that we are not using the BLE high duty cycle setting to change the advertising rate. The rate is managed by repeatedly setting the minimum and maximum intervals. The linear rate of decrease and the slowest interval size were determined experimentally by the author. The 5.3 Core spec suggests that you not advertise slower than once every 1.2 seconds to preserve responsiveness but we ignored that suggestion.
| | * | Fix styles issues - no change to functionalityJames A. Jerkins2021-09-011-6/+6
| | | |