- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my application,when i write a characteristic,I can always see the log "Checking readable attribute 00d2" and log "permission check retCode = 00".
The characteristic I write has the PROP of " LEGATTDB_CHAR_PROP_READ | LEGATTDB_CHAR_PROP_WRITE_NO_RESPONSE | LEGATTDB_CHAR_PROP_WRITE| LEGATTDB_CHAR_PROP_NOTIFY ",
and have the PERMISSION of " LEGATTDB_PERM_VARIABLE_LENGTH | LEGATTDB_PERM_READABLE | LEGATTDB_PERM_WRITE_CMD | LEGATTDB_PERM_WRITE_REQ" .
I have questions:
1. Do the two logs mean errors or warning?
2. What does the retCode of permission check mean?such as 00 ,01,02,03 and so on.
Solved! Go to Solution.
- Labels:
-
ReadWrite Characteristics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
retcode is a kind of diagnostic message and retcode=0 only means that permission is allowed and there is no problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
anybody here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you tell me more exactly what is the app trying to accomplish here? Is it trying to write/read certain characteristic value?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just use Lightblue app to write the characteristic. For example ,write a byte 0xff to the characteristic.But nomater when I write,I can see the two logs above.
I just want to know ,why do permission check? What the retCode mean?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I may have to run past the developers to get you the definitions of those messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
retcode is a kind of diagnostic message and retcode=0 only means that permission is allowed and there is no problem.