|
是一样的呀 这个是主机的
#define NUS_BASE_UUID {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**< Used vendor specific UUID. */
#define BLE_UUID_NUS_SERVICE 0x0001 /**< The UUID of the Nordic UART Service. */
#define BLE_UUID_NUS_RX_CHARACTERISTIC 0x0002 /**< The UUID of the RX Characteristic. */
#define BLE_UUID_NUS_TX_CHARACTERISTIC 0x0003 /**< The UUID of the TX Characteristic. */
这个是从机的 //定义串口透传服务128位UUID基数
#define UARTS_BASE_UUID {{0x40, 0xE3, 0x4A, 0x1D, 0xC2, 0x5F, 0xB0, 0x9C, 0xB7, 0x47, 0xE6, 0x43, 0x00, 0x00, 0x53, 0x86}}
//定义服务和特征的16位UUID
#define BLE_UUID_UARTS_SERVICE 0x000A //串口透传服务16位UUID
#define BLE_UUID_UARTS_TX_CHARACTERISTIC 0x000B //TX特征16位UUID
#define BLE_UUID_UARTS_RX_CHARACTERISTIC 0x000C //RX特征16位UUID
是一样的啊
|
|