安卓手機上配對前顯示的名稱是vhid,配對後顯示的名稱是tRemote。
/**
* @brief Adv Packet data
*/
const u8 tbl_advData[] = {
0x05, 0x09, 'u', 'h', 'i', 'd',
0x02, 0x01, 0x05, // BLE limited discoverable mode and BR/EDR not supported
0x03, 0x19, 0x80, 0x01, // 384, Generic Remote Control, Generic category
0x05, 0x02, 0x12, 0x18, 0x0F, 0x18, // incomplete list of service class UUIDs (0x1812, 0x180F)
};
static const u8 my_devName[] = {'t','R','e','m','o','t','e'};
蘋果手機上配對前顯示的名稱是VRemote或tRemote,配對後顯示的名稱是tRemote。
/**
* @brief Scan Response Packet data
*/
const u8 tbl_scanRsp [] = {
0x08, 0x09, 'V', 'R', 'e', 'm', 'o', 't', 'e',
};