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

Why Does a Disconnect Turn Off LED2?

I am working with the PCA10028 board, SDK 10.0.0, and s110 8.0.0. I have created a characteristic that is "coupled" to LED2. When a connected central writes a value to the characteristic, my code on the PCA10028 turns LED2 on or off according to the value that was written. The difficulty that I am experiencing is that when the remote central disconnects LED2 is being turned off (not by my code). At this point the LED's state and the value of the characteristic are no longer synchronized. I could fix this by detecting the disconnect (or perhaps the next connect) event and resynchronizing them. But, I would prefer to understand what is happening and, perhaps, prevent it all together. Would someone please give me some insight into what is occurring?

Parents Reply Children
No Data
Related