mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-24 12:25:20 +01:00
Fix ids
Add message types to main list
This commit is contained in:
parent
0b7ca79234
commit
a43518c5ed
@ -1163,7 +1163,7 @@ enum BluetoothDeviceRequestType {
|
||||
}
|
||||
|
||||
message BluetoothDeviceRequest {
|
||||
option (id) = 70;
|
||||
option (id) = 68;
|
||||
option (source) = SOURCE_CLIENT;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
@ -1172,7 +1172,7 @@ message BluetoothDeviceRequest {
|
||||
}
|
||||
|
||||
message BluetoothDeviceConnectionResponse {
|
||||
option (id) = 71;
|
||||
option (id) = 69;
|
||||
option (source) = SOURCE_SERVER;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
@ -1182,7 +1182,7 @@ message BluetoothDeviceConnectionResponse {
|
||||
}
|
||||
|
||||
message BluetoothGATTGetServicesRequest {
|
||||
option (id) = 72;
|
||||
option (id) = 70;
|
||||
option (source) = SOURCE_CLIENT;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
@ -1209,7 +1209,7 @@ message BluetoothGATTService {
|
||||
}
|
||||
|
||||
message BluetoothGATTGetServicesResponse {
|
||||
option (id) = 73;
|
||||
option (id) = 71;
|
||||
option (source) = SOURCE_SERVER;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
option (no_delay) = true;
|
||||
@ -1219,7 +1219,7 @@ message BluetoothGATTGetServicesResponse {
|
||||
}
|
||||
|
||||
message BluetoothGATTReadRequest {
|
||||
option (id) = 74;
|
||||
option (id) = 72;
|
||||
option (source) = SOURCE_CLIENT;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
@ -1228,7 +1228,7 @@ message BluetoothGATTReadRequest {
|
||||
}
|
||||
|
||||
message BluetoothGATTReadResponse {
|
||||
option (id) = 75;
|
||||
option (id) = 73;
|
||||
option (source) = SOURCE_SERVER;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
@ -1240,7 +1240,7 @@ message BluetoothGATTReadResponse {
|
||||
}
|
||||
|
||||
message BluetoothGATTWriteRequest {
|
||||
option (id) = 76;
|
||||
option (id) = 74;
|
||||
option (source) = SOURCE_CLIENT;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
@ -1252,7 +1252,7 @@ message BluetoothGATTWriteRequest {
|
||||
}
|
||||
|
||||
message BluetoothGATTReadDescriptorRequest {
|
||||
option (id) = 77;
|
||||
option (id) = 75;
|
||||
option (source) = SOURCE_CLIENT;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
@ -1261,7 +1261,7 @@ message BluetoothGATTReadDescriptorRequest {
|
||||
}
|
||||
|
||||
message BluetoothGATTWriteDescriptorRequest {
|
||||
option (id) = 78;
|
||||
option (id) = 76;
|
||||
option (source) = SOURCE_CLIENT;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
@ -1272,7 +1272,7 @@ message BluetoothGATTWriteDescriptorRequest {
|
||||
}
|
||||
|
||||
message BluetoothGATTNotifyRequest {
|
||||
option (id) = 79;
|
||||
option (id) = 77;
|
||||
option (source) = SOURCE_CLIENT;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
@ -1282,7 +1282,7 @@ message BluetoothGATTNotifyRequest {
|
||||
}
|
||||
|
||||
message BluetoothGATTNotifyDataResponse {
|
||||
option (id) = 80;
|
||||
option (id) = 78;
|
||||
option (source) = SOURCE_SERVER;
|
||||
option (ifdef) = "USE_BLUETOOTH_PROXY";
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,16 @@
|
||||
from .api_pb2 import ( # type: ignore
|
||||
BinarySensorStateResponse,
|
||||
BluetoothDeviceConnectionResponse,
|
||||
BluetoothDeviceRequest,
|
||||
BluetoothGATTGetServicesRequest,
|
||||
BluetoothGATTGetServicesResponse,
|
||||
BluetoothGATTNotifyDataResponse,
|
||||
BluetoothGATTNotifyRequest,
|
||||
BluetoothGATTReadDescriptorRequest,
|
||||
BluetoothGATTReadRequest,
|
||||
BluetoothGATTReadResponse,
|
||||
BluetoothGATTWriteDescriptorRequest,
|
||||
BluetoothGATTWriteRequest,
|
||||
BluetoothLEAdvertisementResponse,
|
||||
ButtonCommandRequest,
|
||||
CameraImageRequest,
|
||||
@ -193,4 +204,15 @@ MESSAGE_TYPE_TO_PROTO = {
|
||||
65: MediaPlayerCommandRequest,
|
||||
66: SubscribeBluetoothLEAdvertisementsRequest,
|
||||
67: BluetoothLEAdvertisementResponse,
|
||||
68: BluetoothDeviceRequest,
|
||||
69: BluetoothDeviceConnectionResponse,
|
||||
70: BluetoothGATTGetServicesRequest,
|
||||
71: BluetoothGATTGetServicesResponse,
|
||||
72: BluetoothGATTReadRequest,
|
||||
73: BluetoothGATTReadResponse,
|
||||
74: BluetoothGATTWriteRequest,
|
||||
75: BluetoothGATTReadDescriptorRequest,
|
||||
76: BluetoothGATTWriteDescriptorRequest,
|
||||
77: BluetoothGATTNotifyRequest,
|
||||
78: BluetoothGATTNotifyDataResponse,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user