This is a variety of examples that cover the entire range of the Qt Bluetooth API. You will find them in their own documentation but they are also accessible from here.
The 蓝牙聊天 example contains a tutorial on how to use the C++ API to create a RFCOMM server and client, and exchange data between them.
范例 | 描述 |
---|---|
蓝牙聊天 | Simple chat server and client via Bluetooth. |
范例 | 描述 |
---|---|
QML Bluetooth Low Energy Heart Rate Game | Connect to Bluetooth Low Energy heart rate belts and receive measurements such as the current pulse. |
QML Bluetooth Low Energy Scanner | Scan for Bluetooth Low Energy devices and show their services and characteristics. |