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

Enabling Notification by default

Hello,

 

I am using nRF52840 S140 V7.0.1.

 

I added notification and if I enable notification in nRF app (Client), I am able to see notification getting executed whenever there is a change in Server.

But my query is, whether can we enable Notification by default in code/Server rather than from client.

Without enabling notification in Client, whenever there is a change in data I am calling sd_ble_gatts_hvx(), still the latest values are not reflected in client.

 

Thanks & Regards

Vishnu Beema

Parents
  • Thank you for your inputs.

    I have one more observation. Below is the sequence of steps I did.

    1) Assume connection established and Notification enabled in nRF Connect app (Client).

    2) From nRF app I will disconnect.

    3) Without closing, I will click on 'connect' with in few seconds.

    4) Connection will be established and also Notification is enabled by default.

    Because of this, though Notification is enabled in nRF app, this is not know by other device. Because of this Notifications are not sent by other device (Server) to nRF app (Client).

    Thanks & Regards

    Vishnu Beema

Reply
  • Thank you for your inputs.

    I have one more observation. Below is the sequence of steps I did.

    1) Assume connection established and Notification enabled in nRF Connect app (Client).

    2) From nRF app I will disconnect.

    3) Without closing, I will click on 'connect' with in few seconds.

    4) Connection will be established and also Notification is enabled by default.

    Because of this, though Notification is enabled in nRF app, this is not know by other device. Because of this Notifications are not sent by other device (Server) to nRF app (Client).

    Thanks & Regards

    Vishnu Beema

Children
No Data
Related