128bit characteristic UUID

Hi:

how to discovery 128bit characteristic UUID which is totally different form 128bit service UUID

Thanks!

 

Parents Reply Children
  • Are there any projects or examples you can refer to

  • I am not aware of any samples that does this, but as you refer to NUS here, you can take a look at the NUS client implementation in components/ble/ble_services/ble_nus_c/ble_nus_c.c. There you can see that the same base (referred to by the "type") is used for the service UUID's as for the characteristic UUID's. But you can just as well modify this implementation to use a different base UUID's for the characterisitcs as for the service.

    So, essentially in addition to registering the base for the service with sd_ble_uuid_vs_add() (and getting a type for that), also register the base for the characteristics, and get the type for that. And the latter type is what you then refer to fro the characteristics.

Related