esphome/esphome
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 05bc9e9f1c.

* 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
..
components implement pairing for bluetooth proxy (#4475) 2023-03-06 18:04:35 +00:00
core Fix typo (#4515) 2023-03-05 23:02:36 +00:00
dashboard Bump pylint from 2.15.10 to 2.16.2 (#4426) 2023-02-13 22:55:36 +00:00
__init__.py
__main__.py Dump full parsed config to json-config api call (#4373) 2023-02-01 16:59:51 +13:00
automation.py Fix parallel invocations of repeat action (#4480) 2023-02-26 22:23:04 +00:00
codegen.py Add int16 to codegen (#4507) 2023-03-04 07:19:51 +00:00
config_helpers.py Merge components in packages (#3555) 2023-02-07 14:08:40 +13:00
config_validation.py Initial stab at importing idf components (#4000) 2023-02-23 01:22:39 +00:00
config.py Merge components in packages (#3555) 2023-02-07 14:08:40 +13:00
const.py Initial stab at importing idf components (#4000) 2023-02-23 01:22:39 +00:00
coroutine.py
cpp_generator.py Bump pylint from 2.15.10 to 2.16.2 (#4426) 2023-02-13 22:55:36 +00:00
cpp_helpers.py Remove a bunch of unnecessary pylint disabling (#4079) 2022-11-24 11:09:19 +13:00
cpp_types.py Add int16 to codegen (#4507) 2023-03-04 07:19:51 +00:00
espota2.py
final_validate.py
git.py Remove idf components before checking if any in config (#4506) 2023-03-05 20:17:32 +00:00
helpers.py
loader.py Bump pylint from 2.15.10 to 2.16.2 (#4426) 2023-02-13 22:55:36 +00:00
log.py
mqtt.py
pins.py adds gpio INPUT_OUTPUT_OPEN_DRAIN (#4360) 2023-02-07 12:55:35 +13:00
platformio_api.py
schema_extractors.py
storage_json.py
types.py
util.py
voluptuous_schema.py
vscode.py
wizard.py
writer.py Add ESPHome version to generated platformio.ini (#4443) 2023-02-16 00:27:32 +00:00
yaml_util.py Merge components in packages (#3555) 2023-02-07 14:08:40 +13:00
zeroconf.py mDNS updates (#4399) 2023-02-09 10:25:44 +13:00