Josh Wu
8d09693654
Implement GATT server included service declaration
2023-05-09 00:59:22 +08:00
Josh Wu
7d7534928f
Add self GATT included service tests
2023-05-08 14:59:58 +08:00
Josh Wu
e9bf5757c4
Implement GATT client included service discovery
2023-05-08 14:59:47 +08:00
Josh Wu
f9f694dfcf
Replace list[] legacy typing
2023-05-08 14:56:20 +08:00
Lucas Abel
022c23500a
Merge pull request #178 from google/uael/pairing
...
Overall fixes and improvements
2023-05-03 21:39:50 -07:00
uael
5d4f811a65
smp: add simple Session proxy
...
This allow modifying the SMP behavior at runtime for testing purpose.
2023-05-04 04:33:50 +00:00
uael
3c81b248a3
smp: add type hints
2023-05-04 04:33:50 +00:00
uael
fdee5ecf70
uuid: add separator to to_hex_str + type hints
2023-05-04 04:33:50 +00:00
uael
29bd693bab
device: fix advertising data UUID list parse loop
2023-05-04 04:32:38 +00:00
uael
30934969b8
ssp: simplify pairing and fix just-works
...
Even through the previous implementation was correct:
- Always call `delegate.confirm()` for `just-works` pairing, but with
`auto` parameter set to `True`.
- Trust the controller and do not double check the devices IO
capabilities.
2023-05-04 04:32:38 +00:00
uael
4a333b6c0f
keys: add an in-memory key-store fallback
...
Instead of defaulting the key-store to `None`, use an in-memory one.
This way a keystore is always available. A future improvement could be
to rework the device keystore initialization to remove checks like
`if self.keystore:` along the codebase.
2023-05-04 04:32:38 +00:00
Gilles Boccon-Gibod
dad7957d92
Merge pull request #185 from google/gbg/netsim-transport
...
support new android emulator gRPC interface
v0.0.150
2023-05-03 08:54:55 -07:00
Gilles Boccon-Gibod
4ffc14482f
fix call to is_dir()
2023-05-02 11:48:34 -07:00
Gilles Boccon-Gibod
63794981b7
fix format
2023-05-02 11:15:07 -07:00
Gilles Boccon-Gibod
5f86cddc85
cleanup doc (+6 squashed commits)
...
Squashed commits:
[6b97b93] add gRPC publish support for netsim
[439717b] fix doc
[5f679d7] fix linting and type errors
[ca7b734] merge 2
[f29c909] update docs
[7800ef9] cleanup (+5 squashed commits)
Squashed commits:
[c501eac] update to latest protos
[e51a3fb] wip
[d6a58fc] wip
[eaa9fa6] wip
[68d9490] wip
wip
wip
wip
update to latest protos
cleanup
2023-05-02 10:45:36 -07:00
uael
b5cc167e31
pairing: apply strict typing
2023-05-01 06:19:11 +00:00
Gilles Boccon-Gibod
51d3a869a4
Merge pull request #183 from google/gbg/181
...
fix keystore save implementation for windows
v0.0.149
2023-04-30 13:59:28 -07:00
Gilles Boccon-Gibod
dd930e3bde
fix implementation for Windows
2023-04-30 11:42:28 -07:00
Gilles Boccon-Gibod
9af426db45
Merge pull request #177 from google/gbg/pairing-delegate-refactor
...
refactor PairingDelegate
v0.0.148
2023-04-18 15:07:23 -07:00
Gilles Boccon-Gibod
4286b2ab59
address PR comments
2023-04-18 15:05:18 -07:00
Gilles Boccon-Gibod
3442358dea
refactor PairingDelegate
2023-04-18 15:04:53 -07:00
Gilles Boccon-Gibod
bf3e05ef91
Merge pull request #174 from google/gbg/pairing-fix
...
fix role state for classic connections
2023-04-11 20:32:29 -07:00
Gilles Boccon-Gibod
5351ab8a42
Merge pull request #176 from google/gbg/connection-defaults
...
only use 1M parameters by default
2023-04-11 20:26:42 -07:00
Gilles Boccon-Gibod
49b2c13e69
only use 1M parameters by default
2023-04-09 17:57:11 -07:00
Gilles Boccon-Gibod
2c2f512180
add comment to explain the initial role choice
2023-04-07 12:19:28 -07:00
Gilles Boccon-Gibod
859aea5a99
fix role state for classic connections
2023-04-07 10:24:26 -07:00
Lucas Abel
962737a97b
Merge pull request #173 from zxzxwu/smp
...
SMP: Determine initiator by direction instead of role
2023-04-07 09:50:06 -07:00
Josh Wu
85496aaff5
SMP: Determine initiator by direction instead of role
...
Though in the spec this is not allowed, but in some ambiguous cases such
as SMP over BR/EDR or we want to test how remote devices handle invalid
pairing requests, we still need to allow this behavior, with some logs
to let users know it's invalid.
2023-04-08 00:02:48 +08:00
Lucas Abel
a95e601a5c
Merge pull request #172 from qiaoccolato/main
...
LICENCE: recorde colors.py licence
2023-04-05 13:31:13 -07:00
Qiao Yang
df218b5370
LICENCE: recorde colors.py licence
2023-04-05 19:02:44 +00:00
Alan Rosenthal
0f737244b5
Merge pull request #169 from AlanRosenthal/alan/remote-values
...
Add `show remote-values`
2023-04-05 09:00:48 -04:00
Alan Rosenthal
a258ba383a
Add show remote-values
...
`gatt_client` caches values read/notifications/indications and displays the most recent value to the user
2023-04-04 18:15:42 +00:00
Gilles Boccon-Gibod
c53e1d2480
Merge pull request #171 from google/gbg/keystore-name
...
use device public or static address for keystore namespace
2023-04-03 17:58:18 -07:00
Gilles Boccon-Gibod
620c135ac4
only instantiate keystore if not already set
2023-04-03 17:52:51 -07:00
Gilles Boccon-Gibod
fca73a49a3
use device public or static address for keystore namespace
2023-04-03 12:39:22 -07:00
Alan Rosenthal
cf70db84a1
Merge pull request #170 from AlanRosenthal/alan/fix-char-proxy-print
...
Fix CharacteristicProxy __str__
2023-03-31 17:25:50 -04:00
Alan Rosenthal
7731c41f80
Fix CharacteristicProxy __str__
...
property was really an int, and needed to be transformed into a `Characteristic.Properties`
2023-03-31 17:06:33 -04:00
Alan Rosenthal
278341cbc0
Merge pull request #167 from AlanRosenthal/alan/properties
...
Create Characteristic.Property
2023-03-31 16:14:38 -04:00
Alan Rosenthal
fb49a87494
Create Characteristic.Property
...
Move all Characteristic properties into its own `enum.IntFlag` class
2023-03-31 16:09:24 -04:00
Alan Rosenthal
eba82b9d9a
Merge pull request #164 from AlanRosenthal/alan/local-write
...
Add `local-write` to bumble-console
2023-03-31 16:07:09 -04:00
Alan Rosenthal
677fc77d3c
Merge pull request #163 from AlanRosenthal/alan/local-values
...
Add `show local-values`
2023-03-31 16:03:52 -04:00
Alan Rosenthal
e026de295f
Add show local-values
...
This PR adds a way to display the local gatt characteristics/descriptors values
If no connections, it shows the value of every characteristic/descriptor.
When there's a connection, it shows the value for each specific connection - CCCDs are connection specific
This screen auto-updates every second
2023-03-31 00:20:07 +00:00
Alan Rosenthal
52c15705e9
Add local-write to bumble-console
...
Add a command to update the local gatt server, and notify/indicate subscribes (if any)
2023-03-30 12:33:32 -04:00
Lucas Abel
45ca0ef071
Merge pull request #166 from google/uael/att-fix
...
att: fixed use of unknown attribute
2023-03-30 07:12:28 -07:00
uael
e0af954baa
att: fixed use of unknown attribute
2023-03-30 14:05:43 +00:00
Lucas Abel
044597de66
Merge pull request #161 from google/uael/smp-get-number-type-hint
...
smp: fix `PairingDelegate.get_number` return type
v0.0.147
2023-03-28 11:48:09 -07:00
Lucas Abel
fb68fa6a33
Merge pull request #162 from zxzxwu/roleswitch
...
Add role switch test and assertion in self test
2023-03-28 06:41:03 -07:00
Josh Wu
b6fe7460ac
Add role switch test and assertion in self test
2023-03-28 12:52:00 +08:00
Lucas Abel
5c59b6ca6d
Merge pull request #158 from benquike/main
...
Fix HCI_PIN_Code_Reply_Command
2023-03-27 17:37:54 -07:00
Hui Peng
dcd66743f6
Use delegate.get_string to get pin code
2023-03-27 17:08:26 -07:00