private void PlatformInit()
 {
     // android default - replaced by callback after request or change
     Mtu           = 20;
     _gattCallback = new GattCallback(this);
     _gatt         = ((ABluetooth.BluetoothDevice)Device).ConnectGatt(Android.App.Application.Context, AutoConnect, _gattCallback, ABluetooth.BluetoothTransports.Le);
     _gatt.RequestMtu(512);
 }
 internal BluetoothRemoteGATTServer(BluetoothDevice device, ABluetooth.BluetoothDevice bluetoothDevice) : this(device)
 {
     _gattCallback = new GattCallback(this);
     NativeGatt    = bluetoothDevice.ConnectGatt(Android.App.Application.Context, false, _gattCallback);
 }
예제 #3
0
 private void PlatformInit()
 {
     _gattCallback = new GattCallback(this);
     _gatt         = ((ABluetooth.BluetoothDevice)Device).ConnectGatt(Android.App.Application.Context, false, _gattCallback);
 }
예제 #4
0
 private void PlatformInit()
 {
     _gattCallback = new GattCallback(this);
     _gatt         = ((ABluetooth.BluetoothDevice)Device).ConnectGatt(Android.App.Application.Context, true, _gattCallback, ABluetooth.BluetoothTransports.Le);
 }