File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,16 @@ namespace maix
113
113
114
114
/* *
115
115
* @brief message is request or not, contrast with is_resp
116
+ * @maixpy maix.protocol.MSG.is_req
116
117
*/
117
118
bool is_req;
118
119
120
+ /* *
121
+ * @brief message is request or not, contrast with is_resp
122
+ * @maixpy maix.protocol.MSG.is_report
123
+ */
124
+ bool is_report;
125
+
119
126
/* *
120
127
* Message body, read only, use set_body() to update
121
128
* @attention DO NOT manually change this value
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ namespace maix::protocol
156
156
frame->version = data[i + 8 ] & FLAG_VERSION_MASK;
157
157
frame->is_resp = data[i + 8 ] & FLAG_IS_RESP_MASK;
158
158
frame->is_req = !frame->is_resp ;
159
+ frame->is_report = data[i + 8 ] & FLAG_REPORT_MASK;
159
160
frame->resp_ok = data[i + 8 ] & FLAG_RESP_OK_MASK;
160
161
frame->cmd = data[i + 9 ];
161
162
frame->set_body (data + i + 10 , data_len - 4 );
@@ -181,6 +182,7 @@ namespace maix::protocol
181
182
version = VERSION;
182
183
is_resp = 0 ;
183
184
is_req = 1 ;
185
+ is_report = 0 ;
184
186
resp_ok = 0 ;
185
187
cmd = 0 ;
186
188
body = nullptr ;
You can’t perform that action at this time.
0 commit comments