Hello, I am studying the peripheral/ble_app_uart and peripheral/ble_app/template examples to understand the proper way to build a peripheral with our own set of services and characteristics. I'm also studying this tutorial:
One thing I don't understand is the purpose of the on_connect function in ble_nus. It says that it is checking 'the hosts CCCD value to inform of readiness to send data using the RX characteristic' and then it is performing a sd_ble_gatts_value_get. I don't really understand the purpose of these two things, and it's not explained in the tutorial. Do I need to do something like this when setting up my own characteristics?
Thanks!