This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE_GATTS_EVT_WRITE - Value Limit Control?

I'm using S110.

I have a characteristic that is writable from phone client. However, the characteristic has lower and upper limits (an acceptable range) for the application. I want to be able to prevent writes that are outside of the acceptable range. Since soft devices writes the value without application intervention, how do I accomplish? I tried putting some logic in the callback event handler responding to BLE_GATTS_EVT_WRITE, but this isn't right and was causing problems. Thanks.

Related