- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Infineon team,
I'm using the 89820 in my project. And I found some weird things in my project.
And I use the hello sensor application.
I found the device name of the GAP can have the write permission in the Bluetooth spec.
So I want to add that in my project but that is not working fine.
====================================================
//BEFORE
// characteristics of GAP service
PRIMARY_SERVICE_UUID16( HANDLE_PHUB_GAP_SERVICE, UUID_SERVICE_GAP ),
// Declare mandatory GAP service characteristic: Dev Name
CHARACTERISTIC_UUID16( HANDLE_PHUB_GAP_SERVICE_CHAR_DEV_NAME, HANDLE_PHUB_GAP_SERVICE_CHAR_DEV_NAME_VAL,
UUID_CHARACTERISTIC_DEVICE_NAME, LEGATTDB_CHAR_PROP_READ, LEGATTDB_PERM_READABLE ),
//AFTER
// Declare mandatory GAP service. Device Name and Appearance are mandatory
// characteristics of GAP service
PRIMARY_SERVICE_UUID16( HANDLE_PHUB_GAP_SERVICE, UUID_SERVICE_GAP ),
// Declare mandatory GAP service characteristic: Dev Name
CHARACTERISTIC_UUID16( HANDLE_PHUB_GAP_SERVICE_CHAR_DEV_NAME, HANDLE_PHUB_GAP_SERVICE_CHAR_DEV_NAME_VAL,
UUID_CHARACTERISTIC_DEVICE_NAME, LEGATTDB_CHAR_PROP_READ|LEGATTDB_CHAR_PROP_WRITE, LEGATTDB_PERM_READABLE|LEGATTDB_PERM_WRITABLE ),
====================================================
I'm adding the green high-light line but I could not find my whole characteristics in the phone application. (even though pairing is done.)
====================================================
====================================================
Could you help me how to add the write permission to the device name characteristic?
Regards,
Wayne
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As the spec says, if the device is discoverable, the device name should only be readable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As the spec says, if the device is discoverable, the device name should only be readable.