添加广播命令的解析和回复指令

This commit is contained in:
ranchuan
2023-12-04 18:17:48 +08:00
parent 95a4faff3f
commit d6b1177af9
4 changed files with 37 additions and 20 deletions

View File

@@ -280,8 +280,8 @@ void protu_reply_call(protu_def *p,array_def *data)
{
param_check(p);
array_def *t=0;
if(p->silent)
return;
// if(p->silent)
// return;
if(p->codec)
t=p->codec->encode(p,data);
// DBG_LOG("send encode:%s",arr_string(t));
@@ -296,8 +296,8 @@ void protu_reply_call(protu_def *p,array_def *data)
void protu_send_call(protu_def *p,uint8_t cmd,array_def *data)
{
array_def *t=0;
if(p->silent)
return;
// if(p->silent)
// return;
if(cmd!=0){
p->cmd=cmd;
// 上报数据不增加流水号 2023.7.14