The BT SIG has adopted the "Indoor Positioning Service" and in there it says ...
"When a characteristic value is written, the Server may check the validity of the value. If the value is invalid, the Server can reject the write request by sending the error "Invalid Value". The characteristic value will then not be updated."
That error value is the response to the ATT_WRITE_REQ.
Does anyone know how we can influence the stack so that it asks us to check the new value before commiting to the characteristic and then sending back an error value that we specify.
I am currently still using v6.0.0 of the softdevice and can't find an obvious way of doing it.
Perhaps that has been addressed in v8.1.0
Look forward to your thoughts