This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Clarification on BLE transactions



Hi Guys,

I'd like to implement a counter on BLE peripheral that would be updated by BLE central devices as a voting system but this would require some synchronization that is not handled by the BLE itself, right?

For example, having a sticker device (Central/Master role) that contains the number of "likes" for a certain object, and having multiple smartphones (as client slaves) updating this counter would require the client to first read the counter value, incrementing it and then commanding a write operation to update it on the master, prone to race conditions errors.

Am I correct? Is there a way to increment a value without previously reading it?

Thanks