HUV
HUV

Reputation: 59

Could not find service with uuid error on IOS React-native BleManager

I do the same things on android it works but on IOS it doesn't work.

I tried this:

I can connect to my device using my variable: connectedDevices.id with is in this case "E8595779-BEF2-FB78-741E-E855465F760C"

As seen on the picture below, I connected to device using ID, But it can't find service with UUID "FFE0" But actually there is service with UUID "FFE0"

All Info Present Here

Upvotes: 0

Views: 1008

Answers (2)

loc
loc

Reputation: 21

I have the same problem today. The answer of OP not worked for me, but I have to call retrieveServices right after connect with the peripheral.

await BleManager.connect(id);
await BleManager.retrieveServices(id);

Upvotes: 0

HUV
HUV

Reputation: 59

It finally worked, What I learned is if you want ble manager to work on IOS, You should make fallowing changes on your working Android code,

  • Service and char UUID should be short form.
  • You should retrieve services after you connect.
  • You should use writewithoutresponse. Much love

Upvotes: 2

Related Questions