Hi,
at Bluetooth core specification v. 4.2, vol. 3, part G, chapter 4.9.3.
An Error Response shall be sent by the server in response to the Write Request if insufficient authentication, insufficient authorization, insufficient encryption key size is used by the client, or if a write operation is not permitted on the Characteristic Value. The Error Code parameter is set as specified in the Attribute Protocol. If the Characteristic Value that is written is the wrong size, or has an invalid value as defined by the profile, then the value shall not be written and an Error Response shall be sent with the Error Code set to Application Error by the server.
We want to send a error response with Application Error when the write value not in the correct range.
Do you have any example like this?
Thanks.