Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Plugin.BLE IOS and Android with MLT-BT05 module

$
0
0

I have an issue using Plugin.BLE with iOS and Android connected to an MLT-BT05 module.

My app basically changes colours on an led strip through this module using a slider on the device.

When using the slider on an Android device the response is quick and the strip changes colour quickly.
When using the slider on as iOS device, the response is slow and takes a while to catch up to the commands sent.

Why is this and how can I get around it? I have tried .WithoutResponse but this just locked up the module.

`Debug.WriteLine("Found Device");
AngelEyesDevice = e.Device;

            await adapter.ConnectToDeviceAsync(AngelEyesDevice);
            var services = await AngelEyesDevice.GetServicesAsync();

            await adapter.StopScanningForDevicesAsync();

            var service = await AngelEyesDevice.GetServiceAsync(Guid.Parse("0000ffe0-0000-1000-8000-00805f9b34fb"));
            characteristic = await service.GetCharacteristicAsync(Guid.Parse("0000ffe1-0000-1000-8000-00805f9b34fb"));

            //characteristic.WriteType = Plugin.BLE.Abstractions.CharacteristicWriteType.WithoutResponse;
            bindingContext.IsBusy = false;`

This is how I am connecting to the device.

Any help would be appreciated as to how I can speed up the iOS response time.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>