修改命令端口
This commit is contained in:
@@ -76,9 +76,9 @@ static const uint8_t spp_service_uuid[16] = {0x9E,0xCA,0xDC,0x24,0x0E,0xE5,0xA9,
|
|||||||
#define ESP_GATT_UUID_SPP_DATA_NOTIFY {0x9E,0xCA,0xDC,0x24,0x0E,0xE5,0xA9,0xE0,0x93,0xF3,0xA3,0xB5,0x02,0x00,0x40,0x6E} // 透传数据发送
|
#define ESP_GATT_UUID_SPP_DATA_NOTIFY {0x9E,0xCA,0xDC,0x24,0x0E,0xE5,0xA9,0xE0,0x93,0xF3,0xA3,0xB5,0x02,0x00,0x40,0x6E} // 透传数据发送
|
||||||
|
|
||||||
/* 第二个 Service 使用 16-bit UUID(示例: 0xBEEF),char 使用 0xBEE1 */
|
/* 第二个 Service 使用 16-bit UUID(示例: 0xBEEF),char 使用 0xBEE1 */
|
||||||
static const int16_t cmd_uuid = 0xABF0;
|
static const int16_t cmd_uuid = 0xABF1;
|
||||||
#define ESP_GATT_UUID_SPP_COMMAND_RECEIVE 0xABF1// 命令接收
|
#define ESP_GATT_UUID_SPP_COMMAND_RECEIVE 0xABF2// 命令接收
|
||||||
#define ESP_GATT_UUID_SPP_COMMAND_NOTIFY 0xABF2// 命令响应的返回。
|
#define ESP_GATT_UUID_SPP_COMMAND_NOTIFY 0xABF3// 命令响应的返回。
|
||||||
|
|
||||||
#define ADV_CONFIG_FLAG (1 << 0)
|
#define ADV_CONFIG_FLAG (1 << 0)
|
||||||
#define SCAN_RSP_CONFIG_FLAG (1 << 1)
|
#define SCAN_RSP_CONFIG_FLAG (1 << 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user