Joakim Plate
2fa5846893
Ble client fixes for proxy ( #6596 )
2024-04-25 20:05:30 +10:00
Clyde Stubbs
5ebb68f4ff
Ble client additions and fixes ( #5277 )
...
* Add config to disable auto-connect of BLE client.
Correct initialise MAC address of BLE client.
* Checkpont
* Fixes for automation progress.
* Fixes for automation progress.
* Checkpoint;
fix notify for ble_client
* Fix BLE client binary_output
* Various fixes
* Consider notifications on when receiving REG_FOR event.
* Add testing branch to workflow
* Add workflow
* CI changes
* CI changes
* CI clang
* CI changes
* CI changes
* Add comment about logging macros
* Add test, sanitise comment
* Revert testing change to ci config
* Update codeowners
* Revert ci config change
* Fix some state changes
* Add default case.
* Minor fixes
* Add auto-connect to logconfig
2023-12-29 01:35:44 -06:00
Rodrigo Martín
ce020b1f9f
fix: Fix broken bluetooth_proxy and ble_clients after BLE enable/disable ( #5704 )
2023-11-08 23:35:37 +00:00
Oxan van Leeuwen
14e38f0469
Upgrade clang-format to v13 ( #4535 )
...
* Upgrade clang-format to v13
* Apply clang-format-13 formatting changes
* Format
* Format bme_680
---------
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-03-20 03:38:41 +00:00
Fredrik Gustafsson
29571a1acd
implement pairing for bluetooth proxy ( #4475 )
...
* default to just-works encryption
This patch will turn on encryption when making active connections in order to comply with just-works BLE encryption.
* Revert "default to just-works encryption"
This reverts commit 05bc9e9f1cca9c41cbc7434379cbd5eb6dbb1034.
* implement pair method
* adhere to clang formatter
* fix oopsie
* bump bluetooth_proxy_version
* add auth callback
* generate new protos
* fix another oopsie
* add pairing status to connection
* clear paired on connect()
* lint
* add unpair ("forget") ble method
* compile protos
* fix oopsie
* add missing unpairing method
* add unpairing
* fix get_paired return type
* remove unused memcpy
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
* change to is_paired
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
* Update bluetooth_proxy.cpp
* actually add missing method
* send auth cb on set_encryption failure
* cleanup from havin the worst test setup
* lint
* match auth events to bd_addr
* add second addr check to auth cb
* add addr check to third auth cb
---------
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-03-06 18:04:35 +00:00
Jesse Hills
4a374a466a
Fix in ble client base address parsing ( #4347 )
2023-01-26 12:02:53 +13:00
J. Nick Koston
615d591367
Always send the MTU request for BLE v3 cached connections ( #4322 )
...
closes https://github.com/esphome/esphome/pull/4321
fixes https://github.com/esphome/issues/issues/4041
fixes https://github.com/esphome/issues/issues/3951
2023-01-20 18:31:00 +13:00
Jesse Hills
24bf3674f3
Remove warnings when falling through switch cases on purpose ( #4181 )
2022-12-14 11:45:43 +13:00
J. Nick Koston
c47dc09d34
Speed up bluetooth proxy connections when using esp-idf ( #4171 )
2022-12-13 13:57:12 +13:00
J. Nick Koston
a59ce7bfa2
Avoid parsing services with v3 connections without cache ( #4117 )
...
Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
Co-authored-by: Maurice Makaay <account+github@makaay.nl>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-11-30 09:40:31 +13:00
J. Nick Koston
8414bb9a7a
Active BLE connection v3 ( #4113 )
...
Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
Co-authored-by: Maurice Makaay <account+github@makaay.nl>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-11-30 07:53:32 +13:00
Jesse Hills
120327866f
Send device address type alongside ble advertisements ( #4115 )
2022-11-29 17:24:21 +13:00
J. Nick Koston
bc5c2d4eb4
Avoid parsing characteristics and descriptors to reduce memory pressure ( #4109 )
2022-11-29 17:16:25 +13:00
J. Nick Koston
73c82862cf
Improve reliability of bluetooth active connections ( #4049 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-11-29 08:15:40 +13:00
J. Nick Koston
75573a3ed1
Fix descriptors not being deleted ( #4104 )
2022-11-29 07:49:41 +13:00
J. Nick Koston
1166d93805
Fix registering for gatt notify when characteristic only support indicate ( #4092 )
2022-11-28 14:03:33 +13:00
J. Nick Koston
cee45c1221
Make sure all BLE address strings are uppercase ( #4097 )
2022-11-28 13:33:17 +13:00
J. Nick Koston
ed42cefeee
Align BLE service logging ( #4095 )
2022-11-28 13:30:41 +13:00
J. Nick Koston
9052947a71
Speed up BLE connections ( #4093 )
2022-11-28 13:30:05 +13:00
J. Nick Koston
53e0af18fb
Make parse_characteristics and parse_descriptors lazy to reduce memory pressure ( #4063 )
2022-11-28 13:28:02 +13:00
Jesse Hills
9273e3775b
Add vector includes ( #4080 )
2022-11-24 13:12:55 +13:00
J. Nick Koston
1f33ad037d
Avoid creating a new espbt::ESPBTUUID each loop when registering for notify ( #4069 )
2022-11-23 09:46:59 +13:00
Jesse Hills
0e66c899ce
Allow multiple bluetooth proxy connections ( #3971 )
2022-11-02 23:02:33 +13:00
Jesse Hills
e5b8dd7f2d
Fix bluetooth_proxy not connecting ( #3967 )
2022-10-29 12:42:48 +13:00
Jesse Hills
b34d24735a
Send GATT error events to HA ( #3884 )
2022-10-12 22:22:07 +13:00
Jesse Hills
ed443c6153
Bluetooth Proxy active connections ( #3817 )
2022-10-04 10:45:06 +13:00