evothings / cordova-ble

Bluetooth Low Energy plugin for Cordova
http://www.evothings.com/
Apache License 2.0
242 stars 103 forks source link

Check if a device is still connected #137

Open fraxool opened 7 years ago

fraxool commented 7 years ago

Hello,

I can't find a function to check if a device is still connected. Is there a way to check that in Evothings?

Thanks, Axel

hoongoon86 commented 7 years ago

I was wondering the same thing. When you look at the file EVOBLE.m you would find that connection status part is commented. I don't remember the exact message but it says something like, 'Because Android does not support connection status, it is also disabled in iOS'. The only option we have now is to use 'connectToDevice' and see if disconnection callback is happening.