TBluetoothLEDevice.UpdateOnReconnect

System.Bluetooth.TBluetoothLEDevice.UpdateOnReconnect

Description

Indicates whether the manager automatically updates its internal service objects when a remote device reconnects (True), or you want to manually perform a new service discovery operation to obtain new, valid internal service objects (False).

Platform Support

This property only affects OS X and iOS.

In those platforms, when a previously-discovered remote device disconnects, the internal objects that represent its services in your Bluetooth manager become invalid. When the remote device reconnects, the run-time platform generates new internal objects to represents the services of that remote device.

By default, any instance of TBluetoothGattService, TBluetoothGattCharacteristic or TBluetoothGattDescriptor that belonged to that remote device becomes invalid, and you must perform a new service discovery to obtain new objects that you can use. Change the value of UpdateOnReconnect to True if you want your manager to automatically update your existing objects when a device reconnects so that you do not need new objects.

Other platforms do not need new instances of TBluetoothGattService, TBluetoothGattCharacteristic or TBluetoothGattDescriptor when remote devices reconnect.

时间: 2024-10-27 18:56:26

TBluetoothLEDevice.UpdateOnReconnect的相关文章

delphi TBluetoothLE

delphi TBluetoothLE.TBluetoothLEManager 1.搜索设备 BluetoothLE1.DiscoverDevices(4000); 触发事件 BluetoothLE1EndDiscoverDevices 发现蓝牙设备 2.搜索服务 BluetoothLE1.DiscoverServices(FCurrentDevice) BluetoothLE1EndDiscoverServices  发现蓝牙设备的服务 3.发送数据 BluetoothLE1.WriteCha

Delphi BLE 控件

TBluetoothLEDevice LDevice.Address;//"00:11:22:DD:EE:FF". LDevice.DeviceName//Mi LDevice.Identifier TBluetoothGattCharacteristic FGattChar: TBluetoothGattCharacteristic;

Delphi XE7的蓝牙 Bluetooth

Delphi XE7已经内建了蓝牙功能,提供了System.Bluetooth.pas单元 顾名思义,System表示XE7的蓝牙功能可以在Windows,Android,IOS系统内使用 System.Bluetooth单元中主要包含一下几个类,其中带LE的支持所有系统,不带LE的类不支持Ios系统,带与不带LE功能是一样的. TBluetoothManagerTBluetoothDeviceListTBluetoothAdapterTBluetoothDeviceTBluetoothServ