首页 > 其他 > 详细

RAD 10 蓝牙

时间:2015-11-18 22:45:06      阅读:381      评论:0      收藏:0      [点我收藏+]

http://docwiki.embarcadero.com/Libraries/Seattle/en/System.Bluetooth.TBluetoothLEManager.StartDiscovery

BluetoothLE Server

To create a server to expose or publish standard services:

  1. Place a TBluetoothLE component in your project.
  2. Use the GetGattServer method to publish Bluetooth Low Energy services.
  3. Use the CreateService method from the TBluetoothGattServer class to create the service using the standard UUID.
  4. Use the CreateCharacteristic method from the TBluetoothGattServer class to create the characteristics for the service using the standard UUIDs.
  5. Use the AddService method to add the service to the Gatt server.
  6. The OnCharacteristicReadRequest event handler fires when the server receives a reading request from the client device.
  7. The OnCharacteristicWriteRequest event handler fires when the server receives a writing request from the client device.

Bluetooth Improvements

RAD 10 蓝牙

原文:http://www.cnblogs.com/cb168/p/4975910.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!