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

Clearing characteristic value

Hi,

I tried looking for an answer for this, however unsuccessfully.
I have a custom characteristic and I set it with a string of values when it is added to the custom service.

I need to remove those values or if cannot remove, to replace the string with a zero.

For example: 0x01, 0x02, 0x03... ==> 0x00

I can set the zero to the characteristic value, however it only replaces the first byte of the string, leaving other bytes untouched.
Setting NULL does nothing.
How could I clear the string away?

Thank you!

Related