BLE , First read characteristics after reconnect

Viewed 22

The scenario of my problem is: read data permanently from peripheral faster as possible; peripheral disconnects chaotically (lost signal) and reconnects again in 0.5-1s. used custom service.

The mechanism of all process is:

  • discover peripherals
  • connect
  • observe services & characteristics
  • read \ write & notify data

I have discovered that time after disconnect from peripheral, its the same like first time. I know that iOS is caching characteristics & services for knowns devices and reconnect to known device should be a faster than 1th time, but read data for second time it's the same.

I tried to cache characteristics and service from previous connection, but after reconnect data could not be read, i don't know why.

It work if i run scan for services & characteristics again.

How i can improve read process?

0 Answers
Related