Fix ESP-NOW unicast by using sender MAC in client registry.
Register slaves from recv src_addr instead of protobuf mac bytes, add ESPNOW_UNICAST_TEST for path verification, restore unicast deadzone, and expose unicast-test in goTool. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+223
-69
@@ -24,18 +24,19 @@ const (
|
||||
type MessageType int32
|
||||
|
||||
const (
|
||||
MessageType_UNKNOWN MessageType = 0
|
||||
MessageType_ACK MessageType = 1
|
||||
MessageType_ECHO MessageType = 2
|
||||
MessageType_VERSION MessageType = 3
|
||||
MessageType_CLIENT_INFO MessageType = 4
|
||||
MessageType_CLIENT_INPUT MessageType = 5
|
||||
MessageType_ACCEL_DEADZONE MessageType = 6
|
||||
MessageType_OTA_START MessageType = 16
|
||||
MessageType_OTA_PAYLOAD MessageType = 17
|
||||
MessageType_OTA_END MessageType = 18
|
||||
MessageType_OTA_STATUS MessageType = 19
|
||||
MessageType_OTA_START_ESPNOW MessageType = 20
|
||||
MessageType_UNKNOWN MessageType = 0
|
||||
MessageType_ACK MessageType = 1
|
||||
MessageType_ECHO MessageType = 2
|
||||
MessageType_VERSION MessageType = 3
|
||||
MessageType_CLIENT_INFO MessageType = 4
|
||||
MessageType_CLIENT_INPUT MessageType = 5
|
||||
MessageType_ACCEL_DEADZONE MessageType = 6
|
||||
MessageType_ESPNOW_UNICAST_TEST MessageType = 7
|
||||
MessageType_OTA_START MessageType = 16
|
||||
MessageType_OTA_PAYLOAD MessageType = 17
|
||||
MessageType_OTA_END MessageType = 18
|
||||
MessageType_OTA_STATUS MessageType = 19
|
||||
MessageType_OTA_START_ESPNOW MessageType = 20
|
||||
)
|
||||
|
||||
// Enum value maps for MessageType.
|
||||
@@ -48,6 +49,7 @@ var (
|
||||
4: "CLIENT_INFO",
|
||||
5: "CLIENT_INPUT",
|
||||
6: "ACCEL_DEADZONE",
|
||||
7: "ESPNOW_UNICAST_TEST",
|
||||
16: "OTA_START",
|
||||
17: "OTA_PAYLOAD",
|
||||
18: "OTA_END",
|
||||
@@ -55,18 +57,19 @@ var (
|
||||
20: "OTA_START_ESPNOW",
|
||||
}
|
||||
MessageType_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"ACK": 1,
|
||||
"ECHO": 2,
|
||||
"VERSION": 3,
|
||||
"CLIENT_INFO": 4,
|
||||
"CLIENT_INPUT": 5,
|
||||
"ACCEL_DEADZONE": 6,
|
||||
"OTA_START": 16,
|
||||
"OTA_PAYLOAD": 17,
|
||||
"OTA_END": 18,
|
||||
"OTA_STATUS": 19,
|
||||
"OTA_START_ESPNOW": 20,
|
||||
"UNKNOWN": 0,
|
||||
"ACK": 1,
|
||||
"ECHO": 2,
|
||||
"VERSION": 3,
|
||||
"CLIENT_INFO": 4,
|
||||
"CLIENT_INPUT": 5,
|
||||
"ACCEL_DEADZONE": 6,
|
||||
"ESPNOW_UNICAST_TEST": 7,
|
||||
"OTA_START": 16,
|
||||
"OTA_PAYLOAD": 17,
|
||||
"OTA_END": 18,
|
||||
"OTA_STATUS": 19,
|
||||
"OTA_START_ESPNOW": 20,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -113,6 +116,8 @@ type UartMessage struct {
|
||||
// *UartMessage_OtaStatus
|
||||
// *UartMessage_AccelDeadzoneRequest
|
||||
// *UartMessage_AccelDeadzoneResponse
|
||||
// *UartMessage_EspnowUnicastTestRequest
|
||||
// *UartMessage_EspnowUnicastTestResponse
|
||||
Payload isUartMessage_Payload `protobuf_oneof:"payload"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -261,6 +266,24 @@ func (x *UartMessage) GetAccelDeadzoneResponse() *AccelDeadzoneResponse {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UartMessage) GetEspnowUnicastTestRequest() *EspNowUnicastTestRequest {
|
||||
if x != nil {
|
||||
if x, ok := x.Payload.(*UartMessage_EspnowUnicastTestRequest); ok {
|
||||
return x.EspnowUnicastTestRequest
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UartMessage) GetEspnowUnicastTestResponse() *EspNowUnicastTestResponse {
|
||||
if x != nil {
|
||||
if x, ok := x.Payload.(*UartMessage_EspnowUnicastTestResponse); ok {
|
||||
return x.EspnowUnicastTestResponse
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isUartMessage_Payload interface {
|
||||
isUartMessage_Payload()
|
||||
}
|
||||
@@ -309,6 +332,14 @@ type UartMessage_AccelDeadzoneResponse struct {
|
||||
AccelDeadzoneResponse *AccelDeadzoneResponse `protobuf:"bytes,12,opt,name=accel_deadzone_response,json=accelDeadzoneResponse,proto3,oneof"`
|
||||
}
|
||||
|
||||
type UartMessage_EspnowUnicastTestRequest struct {
|
||||
EspnowUnicastTestRequest *EspNowUnicastTestRequest `protobuf:"bytes,13,opt,name=espnow_unicast_test_request,json=espnowUnicastTestRequest,proto3,oneof"`
|
||||
}
|
||||
|
||||
type UartMessage_EspnowUnicastTestResponse struct {
|
||||
EspnowUnicastTestResponse *EspNowUnicastTestResponse `protobuf:"bytes,14,opt,name=espnow_unicast_test_response,json=espnowUnicastTestResponse,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*UartMessage_AckPayload) isUartMessage_Payload() {}
|
||||
|
||||
func (*UartMessage_EchoPayload) isUartMessage_Payload() {}
|
||||
@@ -331,6 +362,10 @@ func (*UartMessage_AccelDeadzoneRequest) isUartMessage_Payload() {}
|
||||
|
||||
func (*UartMessage_AccelDeadzoneResponse) isUartMessage_Payload() {}
|
||||
|
||||
func (*UartMessage_EspnowUnicastTestRequest) isUartMessage_Payload() {}
|
||||
|
||||
func (*UartMessage_EspnowUnicastTestResponse) isUartMessage_Payload() {}
|
||||
|
||||
type Ack struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@@ -850,6 +885,110 @@ func (x *AccelDeadzoneResponse) GetSlavesUpdated() uint32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
type EspNowUnicastTestRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ClientId uint32 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
||||
Seq uint32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *EspNowUnicastTestRequest) Reset() {
|
||||
*x = EspNowUnicastTestRequest{}
|
||||
mi := &file_uart_messages_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *EspNowUnicastTestRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*EspNowUnicastTestRequest) ProtoMessage() {}
|
||||
|
||||
func (x *EspNowUnicastTestRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_uart_messages_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use EspNowUnicastTestRequest.ProtoReflect.Descriptor instead.
|
||||
func (*EspNowUnicastTestRequest) Descriptor() ([]byte, []int) {
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *EspNowUnicastTestRequest) GetClientId() uint32 {
|
||||
if x != nil {
|
||||
return x.ClientId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *EspNowUnicastTestRequest) GetSeq() uint32 {
|
||||
if x != nil {
|
||||
return x.Seq
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type EspNowUnicastTestResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||||
Seq uint32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *EspNowUnicastTestResponse) Reset() {
|
||||
*x = EspNowUnicastTestResponse{}
|
||||
mi := &file_uart_messages_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *EspNowUnicastTestResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*EspNowUnicastTestResponse) ProtoMessage() {}
|
||||
|
||||
func (x *EspNowUnicastTestResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_uart_messages_proto_msgTypes[11]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use EspNowUnicastTestResponse.ProtoReflect.Descriptor instead.
|
||||
func (*EspNowUnicastTestResponse) Descriptor() ([]byte, []int) {
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *EspNowUnicastTestResponse) GetSuccess() bool {
|
||||
if x != nil {
|
||||
return x.Success
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *EspNowUnicastTestResponse) GetSeq() uint32 {
|
||||
if x != nil {
|
||||
return x.Seq
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type OtaStartPayload struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TotalSize uint32 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
|
||||
@@ -860,7 +999,7 @@ type OtaStartPayload struct {
|
||||
|
||||
func (x *OtaStartPayload) Reset() {
|
||||
*x = OtaStartPayload{}
|
||||
mi := &file_uart_messages_proto_msgTypes[10]
|
||||
mi := &file_uart_messages_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -872,7 +1011,7 @@ func (x *OtaStartPayload) String() string {
|
||||
func (*OtaStartPayload) ProtoMessage() {}
|
||||
|
||||
func (x *OtaStartPayload) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_uart_messages_proto_msgTypes[10]
|
||||
mi := &file_uart_messages_proto_msgTypes[12]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -885,7 +1024,7 @@ func (x *OtaStartPayload) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use OtaStartPayload.ProtoReflect.Descriptor instead.
|
||||
func (*OtaStartPayload) Descriptor() ([]byte, []int) {
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{10}
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *OtaStartPayload) GetTotalSize() uint32 {
|
||||
@@ -913,7 +1052,7 @@ type OtaPayload struct {
|
||||
|
||||
func (x *OtaPayload) Reset() {
|
||||
*x = OtaPayload{}
|
||||
mi := &file_uart_messages_proto_msgTypes[11]
|
||||
mi := &file_uart_messages_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -925,7 +1064,7 @@ func (x *OtaPayload) String() string {
|
||||
func (*OtaPayload) ProtoMessage() {}
|
||||
|
||||
func (x *OtaPayload) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_uart_messages_proto_msgTypes[11]
|
||||
mi := &file_uart_messages_proto_msgTypes[13]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -938,7 +1077,7 @@ func (x *OtaPayload) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use OtaPayload.ProtoReflect.Descriptor instead.
|
||||
func (*OtaPayload) Descriptor() ([]byte, []int) {
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{11}
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *OtaPayload) GetBlockId() uint32 {
|
||||
@@ -971,7 +1110,7 @@ type OtaEndPayload struct {
|
||||
|
||||
func (x *OtaEndPayload) Reset() {
|
||||
*x = OtaEndPayload{}
|
||||
mi := &file_uart_messages_proto_msgTypes[12]
|
||||
mi := &file_uart_messages_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -983,7 +1122,7 @@ func (x *OtaEndPayload) String() string {
|
||||
func (*OtaEndPayload) ProtoMessage() {}
|
||||
|
||||
func (x *OtaEndPayload) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_uart_messages_proto_msgTypes[12]
|
||||
mi := &file_uart_messages_proto_msgTypes[14]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -996,7 +1135,7 @@ func (x *OtaEndPayload) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use OtaEndPayload.ProtoReflect.Descriptor instead.
|
||||
func (*OtaEndPayload) Descriptor() ([]byte, []int) {
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{12}
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *OtaEndPayload) GetStatus() uint32 {
|
||||
@@ -1015,7 +1154,7 @@ type OtaStatusPayload struct {
|
||||
|
||||
func (x *OtaStatusPayload) Reset() {
|
||||
*x = OtaStatusPayload{}
|
||||
mi := &file_uart_messages_proto_msgTypes[13]
|
||||
mi := &file_uart_messages_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1027,7 +1166,7 @@ func (x *OtaStatusPayload) String() string {
|
||||
func (*OtaStatusPayload) ProtoMessage() {}
|
||||
|
||||
func (x *OtaStatusPayload) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_uart_messages_proto_msgTypes[13]
|
||||
mi := &file_uart_messages_proto_msgTypes[15]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1040,7 +1179,7 @@ func (x *OtaStatusPayload) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use OtaStatusPayload.ProtoReflect.Descriptor instead.
|
||||
func (*OtaStatusPayload) Descriptor() ([]byte, []int) {
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{13}
|
||||
return file_uart_messages_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *OtaStatusPayload) GetStatus() uint32 {
|
||||
@@ -1054,7 +1193,7 @@ var File_uart_messages_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_uart_messages_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x13uart_messages.proto\x12\x04alox\"\x87\x06\n" +
|
||||
"\x13uart_messages.proto\x12\x04alox\"\xcc\a\n" +
|
||||
"\vUartMessage\x12%\n" +
|
||||
"\x04type\x18\x01 \x01(\x0e2\x11.alox.MessageTypeR\x04type\x12,\n" +
|
||||
"\vack_payload\x18\x02 \x01(\v2\t.alox.AckH\x00R\n" +
|
||||
@@ -1071,7 +1210,9 @@ const file_uart_messages_proto_rawDesc = "" +
|
||||
"ota_status\x18\n" +
|
||||
" \x01(\v2\x16.alox.OtaStatusPayloadH\x00R\totaStatus\x12R\n" +
|
||||
"\x16accel_deadzone_request\x18\v \x01(\v2\x1a.alox.AccelDeadzoneRequestH\x00R\x14accelDeadzoneRequest\x12U\n" +
|
||||
"\x17accel_deadzone_response\x18\f \x01(\v2\x1b.alox.AccelDeadzoneResponseH\x00R\x15accelDeadzoneResponseB\t\n" +
|
||||
"\x17accel_deadzone_response\x18\f \x01(\v2\x1b.alox.AccelDeadzoneResponseH\x00R\x15accelDeadzoneResponse\x12_\n" +
|
||||
"\x1bespnow_unicast_test_request\x18\r \x01(\v2\x1e.alox.EspNowUnicastTestRequestH\x00R\x18espnowUnicastTestRequest\x12b\n" +
|
||||
"\x1cespnow_unicast_test_response\x18\x0e \x01(\v2\x1f.alox.EspNowUnicastTestResponseH\x00R\x19espnowUnicastTestResponseB\t\n" +
|
||||
"\apayload\"\x05\n" +
|
||||
"\x03Ack\"!\n" +
|
||||
"\vEchoPayload\x12\x12\n" +
|
||||
@@ -1107,7 +1248,13 @@ const file_uart_messages_proto_rawDesc = "" +
|
||||
"\bdeadzone\x18\x01 \x01(\rR\bdeadzone\x12\x1b\n" +
|
||||
"\tclient_id\x18\x02 \x01(\rR\bclientId\x12\x18\n" +
|
||||
"\asuccess\x18\x03 \x01(\bR\asuccess\x12%\n" +
|
||||
"\x0eslaves_updated\x18\x04 \x01(\rR\rslavesUpdated\"O\n" +
|
||||
"\x0eslaves_updated\x18\x04 \x01(\rR\rslavesUpdated\"I\n" +
|
||||
"\x18EspNowUnicastTestRequest\x12\x1b\n" +
|
||||
"\tclient_id\x18\x01 \x01(\rR\bclientId\x12\x10\n" +
|
||||
"\x03seq\x18\x02 \x01(\rR\x03seq\"G\n" +
|
||||
"\x19EspNowUnicastTestResponse\x12\x18\n" +
|
||||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x10\n" +
|
||||
"\x03seq\x18\x02 \x01(\rR\x03seq\"O\n" +
|
||||
"\x0fOtaStartPayload\x12\x1d\n" +
|
||||
"\n" +
|
||||
"total_size\x18\x01 \x01(\rR\ttotalSize\x12\x1d\n" +
|
||||
@@ -1121,7 +1268,7 @@ const file_uart_messages_proto_rawDesc = "" +
|
||||
"\rOtaEndPayload\x12\x16\n" +
|
||||
"\x06status\x18\x01 \x01(\rR\x06status\"*\n" +
|
||||
"\x10OtaStatusPayload\x12\x16\n" +
|
||||
"\x06status\x18\x01 \x01(\rR\x06status*\xc4\x01\n" +
|
||||
"\x06status\x18\x01 \x01(\rR\x06status*\xdd\x01\n" +
|
||||
"\vMessageType\x12\v\n" +
|
||||
"\aUNKNOWN\x10\x00\x12\a\n" +
|
||||
"\x03ACK\x10\x01\x12\b\n" +
|
||||
@@ -1129,7 +1276,8 @@ const file_uart_messages_proto_rawDesc = "" +
|
||||
"\aVERSION\x10\x03\x12\x0f\n" +
|
||||
"\vCLIENT_INFO\x10\x04\x12\x10\n" +
|
||||
"\fCLIENT_INPUT\x10\x05\x12\x12\n" +
|
||||
"\x0eACCEL_DEADZONE\x10\x06\x12\r\n" +
|
||||
"\x0eACCEL_DEADZONE\x10\x06\x12\x17\n" +
|
||||
"\x13ESPNOW_UNICAST_TEST\x10\a\x12\r\n" +
|
||||
"\tOTA_START\x10\x10\x12\x0f\n" +
|
||||
"\vOTA_PAYLOAD\x10\x11\x12\v\n" +
|
||||
"\aOTA_END\x10\x12\x12\x0e\n" +
|
||||
@@ -1150,23 +1298,25 @@ func file_uart_messages_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_uart_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_uart_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
||||
var file_uart_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
||||
var file_uart_messages_proto_goTypes = []any{
|
||||
(MessageType)(0), // 0: alox.MessageType
|
||||
(*UartMessage)(nil), // 1: alox.UartMessage
|
||||
(*Ack)(nil), // 2: alox.Ack
|
||||
(*EchoPayload)(nil), // 3: alox.EchoPayload
|
||||
(*VersionResponse)(nil), // 4: alox.VersionResponse
|
||||
(*ClientInfo)(nil), // 5: alox.ClientInfo
|
||||
(*ClientInfoResponse)(nil), // 6: alox.ClientInfoResponse
|
||||
(*ClientInput)(nil), // 7: alox.ClientInput
|
||||
(*ClientInputResponse)(nil), // 8: alox.ClientInputResponse
|
||||
(*AccelDeadzoneRequest)(nil), // 9: alox.AccelDeadzoneRequest
|
||||
(*AccelDeadzoneResponse)(nil), // 10: alox.AccelDeadzoneResponse
|
||||
(*OtaStartPayload)(nil), // 11: alox.OtaStartPayload
|
||||
(*OtaPayload)(nil), // 12: alox.OtaPayload
|
||||
(*OtaEndPayload)(nil), // 13: alox.OtaEndPayload
|
||||
(*OtaStatusPayload)(nil), // 14: alox.OtaStatusPayload
|
||||
(MessageType)(0), // 0: alox.MessageType
|
||||
(*UartMessage)(nil), // 1: alox.UartMessage
|
||||
(*Ack)(nil), // 2: alox.Ack
|
||||
(*EchoPayload)(nil), // 3: alox.EchoPayload
|
||||
(*VersionResponse)(nil), // 4: alox.VersionResponse
|
||||
(*ClientInfo)(nil), // 5: alox.ClientInfo
|
||||
(*ClientInfoResponse)(nil), // 6: alox.ClientInfoResponse
|
||||
(*ClientInput)(nil), // 7: alox.ClientInput
|
||||
(*ClientInputResponse)(nil), // 8: alox.ClientInputResponse
|
||||
(*AccelDeadzoneRequest)(nil), // 9: alox.AccelDeadzoneRequest
|
||||
(*AccelDeadzoneResponse)(nil), // 10: alox.AccelDeadzoneResponse
|
||||
(*EspNowUnicastTestRequest)(nil), // 11: alox.EspNowUnicastTestRequest
|
||||
(*EspNowUnicastTestResponse)(nil), // 12: alox.EspNowUnicastTestResponse
|
||||
(*OtaStartPayload)(nil), // 13: alox.OtaStartPayload
|
||||
(*OtaPayload)(nil), // 14: alox.OtaPayload
|
||||
(*OtaEndPayload)(nil), // 15: alox.OtaEndPayload
|
||||
(*OtaStatusPayload)(nil), // 16: alox.OtaStatusPayload
|
||||
}
|
||||
var file_uart_messages_proto_depIdxs = []int32{
|
||||
0, // 0: alox.UartMessage.type:type_name -> alox.MessageType
|
||||
@@ -1175,19 +1325,21 @@ var file_uart_messages_proto_depIdxs = []int32{
|
||||
4, // 3: alox.UartMessage.version_response:type_name -> alox.VersionResponse
|
||||
6, // 4: alox.UartMessage.client_info_response:type_name -> alox.ClientInfoResponse
|
||||
8, // 5: alox.UartMessage.client_input_response:type_name -> alox.ClientInputResponse
|
||||
11, // 6: alox.UartMessage.ota_start:type_name -> alox.OtaStartPayload
|
||||
12, // 7: alox.UartMessage.ota_payload:type_name -> alox.OtaPayload
|
||||
13, // 8: alox.UartMessage.ota_end:type_name -> alox.OtaEndPayload
|
||||
14, // 9: alox.UartMessage.ota_status:type_name -> alox.OtaStatusPayload
|
||||
13, // 6: alox.UartMessage.ota_start:type_name -> alox.OtaStartPayload
|
||||
14, // 7: alox.UartMessage.ota_payload:type_name -> alox.OtaPayload
|
||||
15, // 8: alox.UartMessage.ota_end:type_name -> alox.OtaEndPayload
|
||||
16, // 9: alox.UartMessage.ota_status:type_name -> alox.OtaStatusPayload
|
||||
9, // 10: alox.UartMessage.accel_deadzone_request:type_name -> alox.AccelDeadzoneRequest
|
||||
10, // 11: alox.UartMessage.accel_deadzone_response:type_name -> alox.AccelDeadzoneResponse
|
||||
5, // 12: alox.ClientInfoResponse.clients:type_name -> alox.ClientInfo
|
||||
7, // 13: alox.ClientInputResponse.clients:type_name -> alox.ClientInput
|
||||
14, // [14:14] is the sub-list for method output_type
|
||||
14, // [14:14] is the sub-list for method input_type
|
||||
14, // [14:14] is the sub-list for extension type_name
|
||||
14, // [14:14] is the sub-list for extension extendee
|
||||
0, // [0:14] is the sub-list for field type_name
|
||||
11, // 12: alox.UartMessage.espnow_unicast_test_request:type_name -> alox.EspNowUnicastTestRequest
|
||||
12, // 13: alox.UartMessage.espnow_unicast_test_response:type_name -> alox.EspNowUnicastTestResponse
|
||||
5, // 14: alox.ClientInfoResponse.clients:type_name -> alox.ClientInfo
|
||||
7, // 15: alox.ClientInputResponse.clients:type_name -> alox.ClientInput
|
||||
16, // [16:16] is the sub-list for method output_type
|
||||
16, // [16:16] is the sub-list for method input_type
|
||||
16, // [16:16] is the sub-list for extension type_name
|
||||
16, // [16:16] is the sub-list for extension extendee
|
||||
0, // [0:16] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_uart_messages_proto_init() }
|
||||
@@ -1207,6 +1359,8 @@ func file_uart_messages_proto_init() {
|
||||
(*UartMessage_OtaStatus)(nil),
|
||||
(*UartMessage_AccelDeadzoneRequest)(nil),
|
||||
(*UartMessage_AccelDeadzoneResponse)(nil),
|
||||
(*UartMessage_EspnowUnicastTestRequest)(nil),
|
||||
(*UartMessage_EspnowUnicastTestResponse)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@@ -1214,7 +1368,7 @@ func file_uart_messages_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_uart_messages_proto_rawDesc), len(file_uart_messages_proto_rawDesc)),
|
||||
NumEnums: 1,
|
||||
NumMessages: 14,
|
||||
NumMessages: 16,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user