Add failed flag to connection state response

This commit is contained in:
Jesse Hills 2022-09-28 12:02:04 +13:00
parent 9b3b6f4b94
commit 86512bc607
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
3 changed files with 84 additions and 75 deletions

View File

@ -1187,6 +1187,7 @@ message BluetoothDeviceConnectionResponse {
uint64 address = 1; uint64 address = 1;
bool connected = 2; bool connected = 2;
uint32 mtu = 3; uint32 mtu = 3;
bool failed = 4;
} }
message BluetoothGATTGetServicesRequest { message BluetoothGATTGetServicesRequest {

File diff suppressed because one or more lines are too long

View File

@ -804,6 +804,7 @@ class BluetoothDeviceConnection(APIModelBase):
address: int = 0 address: int = 0
connected: bool = False connected: bool = False
mtu: int = 0 mtu: int = 0
failed: bool = False
@dataclass(frozen=True) @dataclass(frozen=True)