The BLE Peripheral Simulator is an Android app that allows developers to try out new features of Web Bluetooth without the need for a BLE Peripheral Device. You can check the code at: https://github.com/WebBluetoothCG/ble-test-peripheral-android
Developers can use the app to simulate a BLE Peripheral with one of three services:
* Battery Service
* Heart Rate Service
* Health Thermometer Service
Developers can use the new Web Bluetooth features to connect to the app to Read and Write Characteristics, Subscribe to Notifications for when the Characteristics change, and Read and Write Descriptors.
From the app, developers can set the characteristics' values, send notifications and disconnect.
该BLE外设模拟器是一个Android应用程序,允许开发人员免费试用网站蓝牙的新功能,而不需要一个BLE外围设备。 https://github.com/WebBluetoothCG/ble-test-peripheral-android:您可以检查代码
开发人员可以使用应用程序来模拟一个BLE外设有三种服务之一:
*电池服务
*心率服务
*健康温度计服务
开发人员可以使用新的Web蓝牙功能连接到应用程序来读取和写入特性,订阅通知的时候特性发生变化,读取和写入描述符。
从应用程序,开发人员可以设置特性值,发送通知和断开。