Rand Dusing
Rand Dusing
What do your scan parameters look like? You may try disabling and re-enabling Bluetooth programmatically if you detect this error, but that's a bit hacky.
Scan looks fine. Yep, it's basically doing that although maybe a little bit quicker than the 500ms timeout. Android support added some new scan parameters, so maybe the default scan...
Does the angular example app work for you? I'd try this out: initialize -> disable -> enable -> scan. Wait until each action is complete until moving to the next.
Does this issue occur on both iOS and Android? I may need to try getting the UUID from the original string and also the 'cleaned' string. It may also have...
What does this have to do with Bluetooth LE?
Bluetooth LE just transfers bytes. Reconstructing those bytes into text, images or whatever is out of scope of the plugin. Check out the helper functions to turn strings into bytes...
Are any errors being thrown on the Java side? There's not much there that could go wrong.
I don't think you need to re-add the service after disconnecting. Try calling removeAllServices before calling addService again.
You should only need to call initializePeripheral once. Then use start/stopAdvertising to toggle advertising on and off.
Oh I just realized what your last comment was saying. So if you connect a device, disconnect and then connect again, you're not receiving any events?