understanding of services and characteristics

i have created my characteristics custom and advertised one characteristics but unable to find out how to assign the event handler for the characteristics. I will attach the file i have created the services and added the characteristics .

and other question from my end is there any provision for giving  name to the characteristics as like default uuid.

Parents
  • Hi,

    This is described in detail in the old nRF52 Bluetooth Course, so I recomend you go throught that. This shows you everythign you need in order to make your own services and characteristics. Refering to that course, you can see it includes an on_write() function that is called for writes, and it checks if the write is for itself, and handles it accordingly.

    Regarding naming, standard UUIDs has names, but the names are not in the code or actually used on air. So for your own services and characteristics, you are free to name them in any way you like in code and elsewhere.

Reply
  • Hi,

    This is described in detail in the old nRF52 Bluetooth Course, so I recomend you go throught that. This shows you everythign you need in order to make your own services and characteristics. Refering to that course, you can see it includes an on_write() function that is called for writes, and it checks if the write is for itself, and handles it accordingly.

    Regarding naming, standard UUIDs has names, but the names are not in the code or actually used on air. So for your own services and characteristics, you are free to name them in any way you like in code and elsewhere.

Children
Related