How can i add CHARACTERISTIC into generic access server

such as the CHARACTERISTIC,how can i add them into generic access  server

could you give me some help please? Thanks very much

Parents
  • Hello,

    I am not sure exactly what you are trying to do. Perhaps you can elaborate?

    Are you trying to add something custom to the generic access service? Or do you want to add a characteristic to your own custom service?

    And in either way, what SDK version are you using?

    Best regards,

    Edvin

  • Are you trying to add something custom to the generic access service?

    yes,just add characteristic in generic access service

    And in either way, what SDK version are you using?

    sdk version is 16.1.0

    Thanks very much

  • You can't add custom characteristics into the generic access service. You need to create your own service, and add your custom characteristic into that service. Look at how it is done in the SDK\examples\ble_peripheral_ble_app_uart example, and how it adds the two characteristics to the Nordic UART Service (NUS).

    Please note that I am pointing to this example specifically, because some of the other examples use a standard Bluetooth Service, which you also can't change/add characteristics to (at least this is almost true). The Nordic UART Service is a "custom" or "Vendor Specific" service, meaning you can add/remove characteristics as you like in this Service. The way you can tell the difference between vendor specific services and a standardized Bluetooth Service is that the standardized service's UUID is only 16 bit, while the vendor specific is 128 bit. 

    Best regards,

    Edvin

Reply
  • You can't add custom characteristics into the generic access service. You need to create your own service, and add your custom characteristic into that service. Look at how it is done in the SDK\examples\ble_peripheral_ble_app_uart example, and how it adds the two characteristics to the Nordic UART Service (NUS).

    Please note that I am pointing to this example specifically, because some of the other examples use a standard Bluetooth Service, which you also can't change/add characteristics to (at least this is almost true). The Nordic UART Service is a "custom" or "Vendor Specific" service, meaning you can add/remove characteristics as you like in this Service. The way you can tell the difference between vendor specific services and a standardized Bluetooth Service is that the standardized service's UUID is only 16 bit, while the vendor specific is 128 bit. 

    Best regards,

    Edvin

Children
No Data
Related