与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

@@ -94,8 +94,8 @@ static void ble_server_connect_handler(ble_server_status_t status)
static void _sb_manufacturer_encode(uint8_t manufacturer_data[20])
{
memset(manufacturer_data, 0, 20);
manufacturer_data[0] = 'K';
manufacturer_data[1] = 'Y';
manufacturer_data[0] = 0x59;
manufacturer_data[1] = 0x00;
manufacturer_data[2] = PRODUCT0;
manufacturer_data[3] = PRODUCT1;
manufacturer_data[4] = VERSIONS;
@@ -145,7 +145,7 @@ static void wifi_event_handler(bool is_connect, sb_data_port_t *port)
}
SYS_LOG_INF("wifi connect");
}else{
uint8_t res = pc_device_choice_inside(NULL, DATA_PORT_TYPE_WIFI_UDP, CONNECT_WIFI_UDP);
uint8_t res = pc_device_choice_inside(NULL, DATA_PORT_TYPE_WIFI_UDP, DISCONNECT);
if(res == DEVICE_PC_ERROR)
{
SYS_LOG_ERR("wifi pc device choice error");