1 Reply Latest reply on Nov 16, 2020 12:25 AM by XinghaoZ_26

    How to add the write permission to device name on GAP.

    WaSe_1778651

      Dear Infineon team,

       

      I'm using the 89820 in my project. And I found some weird things in my project.

      And I use the hello sensor application.

      I found the device name of the GAP can have the write permission in the Bluetooth spec.

       

       

      So I want to add that in my project but that is not working fine.

      ====================================================

      //BEFORE

          // characteristics of GAP service

          PRIMARY_SERVICE_UUID16( HANDLE_PHUB_GAP_SERVICE, UUID_SERVICE_GAP ),

       

      // Declare mandatory GAP service characteristic: Dev Name

      CHARACTERISTIC_UUID16( HANDLE_PHUB_GAP_SERVICE_CHAR_DEV_NAME, HANDLE_PHUB_GAP_SERVICE_CHAR_DEV_NAME_VAL,

      UUID_CHARACTERISTIC_DEVICE_NAME, LEGATTDB_CHAR_PROP_READ, LEGATTDB_PERM_READABLE ),

      //AFTER

      // Declare mandatory GAP service. Device Name and Appearance are mandatory

          // characteristics of GAP service

          PRIMARY_SERVICE_UUID16( HANDLE_PHUB_GAP_SERVICE, UUID_SERVICE_GAP ),

       

      // Declare mandatory GAP service characteristic: Dev Name

      CHARACTERISTIC_UUID16( HANDLE_PHUB_GAP_SERVICE_CHAR_DEV_NAME, HANDLE_PHUB_GAP_SERVICE_CHAR_DEV_NAME_VAL,

      UUID_CHARACTERISTIC_DEVICE_NAME, LEGATTDB_CHAR_PROP_READ|LEGATTDB_CHAR_PROP_WRITE, LEGATTDB_PERM_READABLE|LEGATTDB_PERM_WRITABLE ),

      ====================================================

       

      I'm adding the green high-light line but I could not find my whole characteristics in the phone application. (even though pairing is done.)

      ====================================================

      ====================================================

      Could you help me how to add the write permission to the device name characteristic?

       

      Regards,

      Wayne