This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do I get Start and EndHandle of a BLE Service

I'm using the MasterEmulator C# DLL.

I have a problem regarding discoverServices. If I understand this correctly discoverServices does not only return a list of all services but it also includes Characteristics. How can I find out if an object of AttributeEntry is an actual service or a characteristic? A coworker said that a service should have a Start and EndHandle to find out how many characteristics it contains.

Now how do I get the Start and EndHandle of a Service? According to the Documentation the AttributeEntry class only has data, uuid and handle members.

Or is there any other way to to determine whether an Entry in the list returned by DiscoverServices is a Service or a Characteristic?

Thanks in Advance.

Parents Reply
  • I didn't code the custom services so I got confused because the MasterControl Panel showed different UUIDs... However I think I now understood the concept. (Official Service have all the same BASE UUID so the Mastercontrol Panel doesn't show the base UUID, eg. Generic Access is 0x1800 ==> 16bit, while all my custom services are 128bit. That is quiet confusing if nobody explains the difference between custom and official services.)

    Thank you for your time ;)

Children
No Data
Related