与APP协议通讯验证,并添加获取与修改wifi、ble设置命令

This commit is contained in:
OPTOC
2025-09-19 14:51:49 +08:00
parent 6f6438f544
commit 7df60a6505
8 changed files with 76 additions and 51 deletions

View File

@@ -4,7 +4,10 @@
#include <stdint.h>
#include <string.h>
#include "resend_crc.h"
#include "os/os.h"
#include "os/os_common.h"
#include "console.h"
#include "shell/sh_vset.h"
// 帧数据量
#define RESEND_HEADER_SIZE 2
#define RESEND_CMD_SIZE 1
@@ -25,9 +28,9 @@ typedef enum
{
RESEND_CMD_DATA = 0x01,
RESEND_CMD_ACK = 0x02,
RESEND_CMD_GET_STATUS = 0x03,
RESEND_CMD_STATUS = 0x04,
RESEND_CMD_SET_STATUS = 0x05,
RESEND_CMD_PARAM = 0x03,
RESEND_CMD_GET_PARAM = 0x04,
RESEND_CMD_SET_PARAM = 0x05,
RESEND_CMD_DATA_ACK = 0x06,