summaryrefslogtreecommitdiff
path: root/app/src/ble.c
AgeCommit message (Collapse)Author
2020-12-02feat(display): Initial widget/status screen work.Pete Johanson
* Battery and output status widgets * Built in status screen combining them. * Ability to define a custom status screen factory function.
2020-12-01refactor(ble): silence warning `auth_passkey_display` not usedinnovaker
Silences the following build warning ... ../src/ble.c:407:13: warning: 'auth_passkey_display' defined but not used [-Wunused-function] 407 | static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey) {
2020-11-03refactor: Replace superseded key namesinnovaker
Replace deprecated key names (LCTL, NUM_0, NUM_1). Replace abbreviated names with fully qualified names (LCTL, RGUI, NUM_0, NUM_1). Follow-up to #21.
2020-10-28feat(endpoints): remove redundant connection checkJoel Spadin
2020-10-28feat(endpoints): update on BLE profile changeJoel Spadin
Added zmk_ble_active_profile_is_connected() to allow code outside ble.c to check the status of the active profile, and changed the ble_active_profile_changed event to also notify when the active profile connects or disconnects. Changed endpoint selection to to also update when the active profile changes, connects, or disconnects.
2020-10-16fix(bluetooth): Add adv data in non-peripherals.Pete Johanson
2020-10-16fix(bluetooth): Stop adv on connected profile.Pete Johanson
2020-10-16fix(bluetooth): Advertise name + appearance.Pete Johanson
* Properly put device name and GAP appearance in advertising packets, for proper display in macOS, Android, etc. * Closes #124
2020-10-15fix(ble): Only advertise when needed.* Once we have a peer connected to for ↵Pete Johanson
the active profile, don't continue advertising.
2020-09-14chore: clang-format the codebase.Pete Johanson
* Use the LLVM style * Override indent width (8) and column limit (100) * Fixes #142.
2020-09-13fix(bluetooth): Reject pairing to taken profiles.Pete Johanson
2020-09-13feat(bluetooth): Add back profiles, split fixes.Pete Johanson
* Add back in profiles, not using Zephyr BT identity infrastructure. * Restore additional `&bt` commands for profile operations. * Fix for split pairing and subscriptions, since Zephyr persists subscriptions across connects. * Remove keymap from peripheral builds, reduces firmware size, and avoids unneeded attempts to send HID data.
2020-09-13fix(bluetooth): Log when clearing on start.Pete Johanson
2020-09-13fix(bluetooth): Delete any previously stored name.Pete Johanson
2020-09-13fix(bluetooth): Kconfig to clear bonds on startPete Johanson
2020-09-13fix(bluetooth): Remove identity, minimal `bt`.Pete Johanson
* Simplify the `bt` behavior to one current command `BT_CLEAR_BONDS_CMD`. * Simplify BLE code for split and non-split keyboards. * Remove keymap processing from split peripheral side.
2020-09-13feat(bluetooth): Proper bond management, identity support for non-splitsPete Johanson
* Add `bt` behavior that can be used to perform certain actions, such as next/prev identity, reset identity, etc. NOTE: Multiple identities is only supported for non-split shields, due to missing Zephyr identity functionality for dual central/peripheral devices. * Proper bond reset tied to action, that honors peripheral bonds, so folks can reset and pair to other hosts, without breaking bonds between splt halves.
2020-09-10fix: Switch to single AUTHORS file.* Closes #164Pete Johanson
2020-08-18Merge pull request #99 from petejohanson/core/bluetooth-unpair-magic-comboPete Johanson
Add magic combo for unpairing BT devices on start.
2020-08-18fix(bluetooth): Stop peripheral half advertising once connected.Pete Johanson
2020-08-18feeature(bt): Add "unpair combo" on startup.Pete Johanson
* Especially for splits, we need the ability to unpair all paired devices as sledgehammer if we need to "reset things", and doing so via keymaps isn't suitable. * Allows shields to define a collection of key positions that if all held 2 seconds after startup, will unpair all existing pairs for the device.
2020-08-18Add missing license header.Pete Johanson
2020-08-16Create proper fix for split default conn bugNick
2020-08-14Remove use of printk.Pete Johanson
2020-08-05Add if block and param req callback commentNick
2020-08-03Remove updated callbackNick
2020-08-02Add two solutions to param updatesNick
2020-08-02Fix variable name in peripheral PHY updateNick
2020-08-02Fix interval update, add PHY updateNick
2020-07-21Fixes for BLE host connections w/ split support.Pete Johanson
2020-07-19Update connectin params once we're connected to.Pete Johanson
2020-07-17Working BT settings.Pete Johanson
2020-07-17Lots of work on split peripheral/central logic.Pete Johanson
2020-07-17Initial work on split central support.Pete Johanson
2020-07-17Initial exploration of split BLE service.Pete Johanson
* Service for split peripheral to report position state to split central. * Updated advertising info. * Behavior for split BT until we have a proper event system.
2020-07-07Use SYS_INIT for BLE and USB init.Pete Johanson
2020-06-21Clean up after refactor, better HID constants.Pete Johanson
2020-06-08Move Zephyr app into subdirectory.Pete Johanson