Nordic DevZone
Nordic Q&A
Blog
Online Power Profiler
DevAcademy
Search
Support
+
User
Site
Search
User
Home
>
Nordic Q&A
State
Verified Answer
View Voters
Login to vote on this thread
0
Login to vote on this thread
Replies
14 replies
Subscribers
73 subscribers
Views
6808 views
Users
0 members are here
Attachments (
0
)
Nordic Case Info
Case ID: 113792
Options
Share
More
This post is older than 2 years and might not be relevant anymore
More Info:
Consider searching for newer posts
How to implement 512 bytes characteristic in peripheral
Paul
over 9 years ago
Do we have any example for implementing a characteristic with more than 20 bytes? Thanks.
Top Replies
RK
over 9 years ago
+3
verified
Example? Just set the length of the characteristic to what you want when you add it. ble_gatts_attr_t.max_len ble_gatts_attr_t.init_len and note the defines #define BLE_GATTS_FIX_ATTR_LEN_MAX…
RK
over 9 years ago
in reply to
RK
+3
The 20 byte limitation is for notifications and indications. Characteristics can be as long as the stack supports. If you're writing the peripheral side (which I assumed without asking, sorry if you're…
MartinBL
over 9 years ago
in reply to
RK
+1
When you initialize your characteristic then write: attr_md.vlen = 1; // <- variable attribute length attr_md.vlen = 0; // <- fixed attribute length ble_gatts_attr_md_t Struct Reference
Related