This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can I enable notification in my ble peripheral?

How to enable the notifications or indications? In APP? can I enable it in ble peripheral? I meet a chip of "Quintic" can do this. When I connect it to MCP and I get this: image description

But my nordic nrf51822 device connect MPC just like this:

image description I must click Enable service manually, can enable notification like quintic chip show state

Parents
  • Enabling/disabling for notifications and indications is strictly done from the peer device using a GATT Write operation. If the two devices are bonded, they are required to retain the CCCD state between connections. The default value should always be 0, i.e. no indications or notifications allowed.

    The Master Control Panel does not automatically write to CCCDs unless you click the "enable services"-button or manually write e.g. 01-00 to the descriptor. A peer device that is interested in consuming the data would, on the other hand, automatically write to the descriptor to start getting data flowing. The MCP in general will not do much unless you specifically click certain buttons, so it is strictly for testing and debugging.

Reply
  • Enabling/disabling for notifications and indications is strictly done from the peer device using a GATT Write operation. If the two devices are bonded, they are required to retain the CCCD state between connections. The default value should always be 0, i.e. no indications or notifications allowed.

    The Master Control Panel does not automatically write to CCCDs unless you click the "enable services"-button or manually write e.g. 01-00 to the descriptor. A peer device that is interested in consuming the data would, on the other hand, automatically write to the descriptor to start getting data flowing. The MCP in general will not do much unless you specifically click certain buttons, so it is strictly for testing and debugging.

Children
Related