syntax = "proto3"; message ErrorDataInfo { int32 Error_Value = 1; bytes Error_Name=4; } message ErrorData { /* ErrorDataInfo Error1=1; ErrorDataInfo Error2=2; ErrorDataInfo Error3=3; ErrorDataInfo Error4=4; ErrorDataInfo Error5=5; ErrorDataInfo Error6=6; ErrorDataInfo Error7=7; ErrorDataInfo Error8=8; ErrorDataInfo Error9=9; ErrorDataInfo Error10=10; ErrorDataInfo Error11=11; ErrorDataInfo Error12=12; ErrorDataInfo Error13=13; ErrorDataInfo Error14=14; ErrorDataInfo Error15=15; ErrorDataInfo Error16=16; ErrorDataInfo Error17=17; ErrorDataInfo Error18=18; ErrorDataInfo Error19=19; ErrorDataInfo Error20=20; */ int32 ErrorCode=1; int32 Motor_1_Error=21; int32 Motor_2_Error=22; int32 Motor_3_Error=23; int32 Motor_4_Error=24; int32 Motor_5_Error=25; int32 Motor_6_Error=26; int32 Motor_7_Error=27; /* int32 ErrorData_485_1=1; int32 ErrorData_485_2=2; int32 ErrorData_485_3=3; int32 ErrorData_485_4=4; int32 ErrorData_E22_Serial=5; int32 ErrorData_InterCall_DEBUG=6; int32 ErrorData_E28_SBUS=7; int32 ErrorData_CAN_1=8; int32 ErrorData_CAN_2=9; int32 Motor_1_Error=10; int32 Motor_2_Error=11; int32 Motor_3_Error=12; int32 Motor_4_Error=13; int32 Motor_5_Error=14; int32 Motor_6_Error=15; int32 Motor_7_Error=16; */ } //protoc --nanopb_out=. *.proto