Commit 664695d6 authored by 王金亮's avatar 王金亮

fix:蓝牙名字改为“QJ-Viva”

parent 5798a441
......@@ -138,7 +138,7 @@ void simple_ota_service(void)
uint8_t BT_Device_Name[14] = "QianJiangViva";
uint8_t BT_Device_Name[14] = "QJ-Viva";
#define GATTS_TABLE_TAG "GATTS_TABLE_DEMO"
......@@ -147,7 +147,7 @@ uint8_t BT_Device_Name[14] = "QianJiangViva";
#define PROFILE_APP_IDX 0
#define ESP_APP_ID 0x55
#define SAMPLE_DEVICE_NAME "QianJiangViva"
#define SAMPLE_DEVICE_NAME "QJ-Viva"
#define SVC_INST_ID 0
#define SVC_INST_ID1 1
......@@ -182,7 +182,7 @@ static uint8_t raw_adv_data[] = {
0x02, 0x01, 0x02,
0x03, 0x03, 0x69, 0x67,
0x09, 0xff, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0d, 0x09, 'Q', 'I', 'A', 'N', 'J', 'I', 'A', 'N', 'V', 'i', 'v', 'a',
0x08, 0x09, 'Q', 'J', '-', 'V', 'i', 'v', 'a',
// 0x08, 0x16, 0x60, 0xb3, 0x00, 0x00, 0x00, 0x00, 0x00,
};
......@@ -911,10 +911,10 @@ void Get_Mac_Init(void )
printf("My MAC:\n");
esp_log_buffer_hex(GATTS_TABLE_TAG, ble_mac, 6);
BT_Device_Name[sizeof(BT_Device_Name) - 5] = temp[0];
BT_Device_Name[sizeof(BT_Device_Name) - 4] = temp[1];
BT_Device_Name[sizeof(BT_Device_Name) - 3] = temp[2];
BT_Device_Name[sizeof(BT_Device_Name) - 2] = temp[3];
BT_Device_Name[sizeof(BT_Device_Name) - 11] = temp[0];
BT_Device_Name[sizeof(BT_Device_Name) - 10] = temp[1];
BT_Device_Name[sizeof(BT_Device_Name) - 9] = temp[2];
BT_Device_Name[sizeof(BT_Device_Name) - 8] = temp[3];
raw_adv_data[11] = ble_mac[0];
raw_adv_data[12] = ble_mac[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment