don / ionic-ble-examples

Ionic Framework Bluetooth Low Energy Examples
102 stars 70 forks source link

how to read multiple times #4

Closed titou71 closed 6 years ago

titou71 commented 6 years ago

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 6 years ago

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.