Skip to content

BLE - finding UUIDs of unknown GATT services and characteristics #233

Description

@Adarkazanli96

Hi, I’m working with a bluetooth peripheral device that is programmed to use custom gatt services and characteristics. I’m trying to see if it might be possible to find out what the UUIDs for them are by first calling device.discoverAllPrimaryServices() and then having each service in the array print out it’s uuid as well as all of it’s characteristics UUIDs using a function like this:

const getAllUUIDs = (arr) =>{
    for(let i = 0; i<arr.length; i++){
        trace(UUID is ${arr[i].uuid})
    }
}

But the output is [object ArrayBuffer]
I’ve tried various methods to convert it into a string but none of them have worked

If I can get some pointers on how this might be done please let me know, thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions