There is an issue with the connection display of the iPhone when starting Bluetooth

hi i have a question

i ues ncs 2.9.0

This is the code that displays my Bluetooth connection

——————————————————————————————————————————————————

struct bt_data ad[] = {
       
        BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
        BT_DATA(BT_DATA_NAME_COMPLETE, dev_name, 18),
        BT_DATA_BYTES(BT_DATA_UUID16_ALL, 0x0D, 0x18),                      
        BT_DATA_BYTES(BT_DATA_UUID16_ALL, 0x0A, 0x18)                        
    };
   
    struct bt_data sd[] = {
        BT_DATA_BYTES(BT_DATA_UUID128_ALL,BT_UUID_NUS_VAL ),
        BT_DATA(BT_DATA_NAME_SHORTENED, short_name, strlen(short_name)),
    };

    int err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd,
                              ARRAY_SIZE(sd));

---------------------------------------------------------------------------------------------

dev_name=“YDB123E9C5FC872022”

short_name="YDB123E9C5"

but

in my prj.conf

CONFIG_BT_DEVICE_NAME="Zephyr"

Why is it displayed as not “YDB123E9C5FC872022”

My Android phone is displaying normally

Please give me some help

Parents Reply Children
No Data
Related