This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ble_??s_init_t

Could someone please explain or point me to rules for creation of such type for custom service? I did look at provided examples but there are no comments telling why members of structures are there. Especially I'm curious about metadata types.

Many thanks!

Parents
  • Hi,

    That all depends on what the service does and what it needs. The ble_hids init structure has alot of USB HID specific variables, because its needed for the implementation of the specific service.

    Look at nAN-36 on our website. Its ble_lbs_init_t only holds a funct ptr, because it's purpose is to turn a LED on/off and detect the state of a button. In addition, you have the bluetooth LE specific struct (ble_lbs_t), which holds your handles etc.

    Cheers, Håkon

Reply
  • Hi,

    That all depends on what the service does and what it needs. The ble_hids init structure has alot of USB HID specific variables, because its needed for the implementation of the specific service.

    Look at nAN-36 on our website. Its ble_lbs_init_t only holds a funct ptr, because it's purpose is to turn a LED on/off and detect the state of a button. In addition, you have the bluetooth LE specific struct (ble_lbs_t), which holds your handles etc.

    Cheers, Håkon

Children
No Data
Related