don/ionic-ble-examples

how to read multiple times

Closed this issue · 1 comments

Hi,

I want to read a characteritic UUID that change really often.
I can read only the first message. The others are not read.

Any idea ?

don commented

Read only reads one time. You'll need to call read again later to get the new value.

If the characteristic supports notifications ble.startNotification is a better option because the peripheral will notify the phone whenever the value changes.