欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

nordic 52832 蓝牙广播名与UID的修改

程序员文章站 2022-07-13 17:21:49
...

 1.蓝牙广播名,UID类型的修改

/**< Name of device. Will be included in the advertising data. */
#define DEVICE_NAME                     "Nordic_UART_ZNB"       //蓝牙广播名  
                      
/**< UUID type for the Nordic UART Service (vendor specific). */
#define NUS_SERVICE_UUID_TYPE           BLE_UUID_TYPE_VENDOR_BEGIN                  

2.UID特性描述数组

 /**< Universally unique service identifier. */
static ble_uuid_t m_adv_uuids[] =                                        
{
    {BLE_UUID_NUS_SERVICE, NUS_SERVICE_UUID_TYPE}
};

3.UID 的修改

/**< The UUID of the Nordic UART Service. */
#define BLE_UUID_NUS_SERVICE 0x0001