KT24-1110_65E-HA-651B/apps/soundbox/smartbox/cmd_data_deal/cmd_respone.c

32 lines
819 B
C
Raw Normal View History

2024-11-10 10:44:17 +00:00
#include "smartbox/config.h"
#include "smartbox/event.h"
#include "smartbox_update.h"
#include "file_transfer.h"
///>>>>>>>>>>>>>>>设备接收到上报给APP端命令的回复
void cmd_respone(void *priv, u8 OpCode, u8 status, u8 *data, u16 len)
{
printf("cmd_respone:%x\n", OpCode);
#if RCSP_UPDATE_EN
if (0 == JL_rcsp_update_cmd_receive_resp(priv, OpCode, status, data, len)) {
return;
}
#endif
switch (OpCode) {
case JL_OPCODE_FILE_TRANSFER_END:
file_transfer_download_end(status, data, len);
break;
case JL_OPCODE_FILE_TRANSFER_CANCEL:
file_transfer_download_active_cancel_response(status, data, len);
break;
case JL_OPCODE_FILE_RENAME:
file_transfer_file_rename(status, data, len);
break;
default:
break;
}
}