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 Håkon,

    Thank you for reply. I did read AN36, read DevZone posts related to it as well. Still it isn't clear what the generic rules are. Here is an example:

    ble_srv_security_mode_t xxs_attr_md;  /* Initial Security Setting for XX Service Characteristics. */
    

    Is this member required whenever client needs access to READ service data? When CCCD is necessary? I can ask a lot of questions like that. Could you please point me to some reference documents/comments to learn this. Code examples are good but all I can do is copy them with my own assumption.

    Thank you.

    Bar.

Reply
  • Hi Håkon,

    Thank you for reply. I did read AN36, read DevZone posts related to it as well. Still it isn't clear what the generic rules are. Here is an example:

    ble_srv_security_mode_t xxs_attr_md;  /* Initial Security Setting for XX Service Characteristics. */
    

    Is this member required whenever client needs access to READ service data? When CCCD is necessary? I can ask a lot of questions like that. Could you please point me to some reference documents/comments to learn this. Code examples are good but all I can do is copy them with my own assumption.

    Thank you.

    Bar.

Children
  • Hi Bar,

    The reference document for bluetooth LE specific implementations and how it works would be the bluetooth core specification, but that's very hard to read, especially if you just want to get the basics to start your development.

    Check out this book to get a bit of better overview: shop.oreilly.com/.../0636920033011.do

    Cheers, Håkon

  • Reading it and also Robin Heydon's BLE and Naresh Gupta Inside BLE. The problem that none of those books is describing the design, its options. Nordic provides implementation tools and examples and still no explanation for design. All those books are than more helpful than more experience one already has to some point. I like examples you're providing. I can read details from the core or other books but ... Thank you very much for reply and yet again some additional explanations or even exact reference for detail reading to the Core or other books will be extremely helpful.

    Cheers, Bar

Related