How give name for custom characteristic in BLE GATT?

I have created custom characteristics by 

BT_GATT_SERVICE_DEFINE(vnd_svc,
    BT_GATT_PRIMARY_SERVICE(&vnd_uuid),
    BT_GATT_CHARACTERISTIC(&vnd_enc_uuid.uuid,
                   BT_GATT_CHRC_READ | BT_GATT_CHRC_WRITE|
                   BT_GATT_CHRC_INDICATE,
                   BT_GATT_PERM_READ_ENCRYPT|
                   BT_GATT_PERM_WRITE_ENCRYPT,
                   BleGattRead, BleGattWrite,NULL
    ),
this chunk of code.
Here the characteristics are visible has unknown characteristics in the nrf connect mobile app.
Is there any way from the firmware side I could hardcode the names for these characteristics?
Parents
  • The name you see in the nRF Connect Mobile app does not come from the nRF52833. The name comes from the nRF Connect app itself. For example if you run the peripheral uart sample on the nRF52832, you will see the following:

    The nRF Connect app sees the UUID 6e400003-b5a3-f393-e0a9-e50e24dcca9e, and knows that it is a TX Characteristic, so it will display the name "TX Characteristic".

    If you want to display a name for you custom characteristic, you can do the following:

    Best regards,

    Simon

Reply
  • The name you see in the nRF Connect Mobile app does not come from the nRF52833. The name comes from the nRF Connect app itself. For example if you run the peripheral uart sample on the nRF52832, you will see the following:

    The nRF Connect app sees the UUID 6e400003-b5a3-f393-e0a9-e50e24dcca9e, and knows that it is a TX Characteristic, so it will display the name "TX Characteristic".

    If you want to display a name for you custom characteristic, you can do the following:

    Best regards,

    Simon

Children
No Data
Related