- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been trying to determine the role of the device, whether it is a master or a slave using
INT32 role = (INT32)emconninfo_getRole;
ble_trace1("Role is %ld \n", role);
in the connection_up callback function.
In the trace I see the following:
Role is 65159.
But the defined values are ROLE_MASTER =0 and ROLE_SLAVE=1.
What does this mean? Or am I not calling the function right?
Also I always see this in the trace log:
Trace Decoding Error - Could not find line number 314
Any idea what this means too?
Solved! Go to Solution.
- Labels:
-
Debug
-
MasterSlave
-
SDK 2.X
- Tags:
- 846590
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you mean INT32 role = (INT32)emconninfo_getRole(); - this is a function, so you need the parentheses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will ask the developers to respond.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you mean INT32 role = (INT32)emconninfo_getRole(); - this is a function, so you need the parentheses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That solved it!