RAD 10 蓝牙
2024-09-05 06:00:37
http://docwiki.embarcadero.com/Libraries/Seattle/en/System.Bluetooth.TBluetoothLEManager.StartDiscovery
BluetoothLE Server
To create a server to expose or publish standard services:
- Place a TBluetoothLE component in your project.
- Use the GetGattServer method to publish Bluetooth Low Energy services.
- Use the CreateService method from the TBluetoothGattServer class to create the service using the standard UUID.
- Use the CreateCharacteristic method from the TBluetoothGattServer class to create the characteristics for the service using the standard UUIDs.
- Use the AddService method to add the service to the Gatt server.
- The OnCharacteristicReadRequest event handler fires when the server receives a reading request from the client device.
- The OnCharacteristicWriteRequest event handler fires when the server receives a writing request from the client device.
Bluetooth Improvements
- The new ScannedAdvertiseData property of TBluetoothLEDevice allows you to access the data that a remote device advertises as an instance of TBluetoothLEAdvertiseData, so that you can easily read useful information, such as its manufacturer-specific information.
- TBluetoothGattServer.AddService allows you to indicate whether you want the added service advertised (default) or not.
- TBluetoothLEManager.StartDiscovery supports a new parameter,
ForceConnect
, to connect to all discovered remote devices to obtain a complete list of services that each remote device provides. This allows you to filter remote devices based on the services that they provide, regardless of whether they advertise them or not. - New TBluetoothUUIDHelper helper class to work with different formats of Bluetooth UUIDs.
最新文章
- Quartz.net 开源job调度框架(一)
- ASM:《X86汇编语言-从实模式到保护模式》第七章应用例:用adc命令计算1到1000的累加
- C++函数模版
- linux问题汇总---如何生成密钥对
- Codeforces Beta Round #97 (Div. 1)
- Java final修饰形参
- 【暑假】[实用数据结构]前缀树 Trie
- 把公共cpp包含到cocos2d-x内部编译的方法。。
- Float(浮动)
- Java高级特性之枚举学习总结
- Android开发5:布局管理器2(表格布局TableLayout)
- 解决安卓手机input获取焦点时会将底部固定定位按钮顶起的问题
- Codeforces 789A Anastasia and pebbles(数学,思维题)
- pwnable.kr-leg-witeup
- 132.leecode-Palindrome Partitioning II
- csrf_token 跨站请求设置
- Android一个工程引用另一个工程的方法
- vue-02-安装-指令
- Dom4j与sax 简单对比
- 详解C#泛型(二)