How to add characteristic write only in peripheral server
and how to know the char was write
How to add characteristic write only in peripheral server
and how to know the char was write
Hi. I'm not sure if I quite understand what you mean. If you want to apply "write-only" permissions to your characteristic you can set the relevant bits in the GATT Characteristic Properties before you call sd_ble_gatts_characteristic_add(). Have a look at the examples in our SDKs.
When your characteristic is written to you will get a BLE_GATTS_EVT_WRITE event from the Softdevice with this data.