1 Reply Latest reply on Nov 23, 2017 10:32 PM by anpm

    Write Using Characteristic Uuid?

    zaborpila_2607831

      Hi,

       

      Checking the Bluetooth Low Energy (BLE) 3.30 component Datasheet, among the GATT Client Functions I found functions to read a characteristic using either its UUID or its handle to define the characteristic you want to read from:

       

      GattcReadCharacteristicValue

      GattcReadUsingCharacteristicUuid

       

      But, in the case of writing there is no function available to write to a characteristic using  the UUID of the characteristic as reference. You can only use the handle as reference to define the characteristic you want to write to using this function (among others):

       

      GattcWriteCharacteristicValue

       

      Is there a reason for this limitation, I mean is there a reason for not having a GattcWriteUsingCharacteristicUuid kind of function?

       

      In case I know the UUID of a characteristic I want to write to but I don't know its handle, which is the simplest  and quickest sequence I could follow in order to obtain its handle and be able to use GattcWriteCharacteristicValue? Maybe using GattcDiscoverCharacteristicByUuid?

       

      Thank you for your help.