Hi. I have a problem with writing value to gatts attribute when device is in connection mode. In my application I want to check if the parameter writing by the client to server's attribute has a proper value and if not, I want to set there my own value. I am using "on_ble_evt(ble_evt_t * p_ble_evt)" function and BLE_GATTS_EVT_WRITE to detect writing event and I am checking the value - this part works fine. But when incorrect value is detected I cant write my own value with "sd_ble_gatts_value_set" - it works only after disconnection. I would like to ask is it possible to set attribute's value in connection mode?
Best regards, Martin