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.
蓝牙聊天 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. |
蓝牙扫描器 | Scan for Bluetooth devices. |
范例 | 描述 |
---|---|
QML 蓝牙乒乓 | Ping pong game demonstrating Bluetooth socket communication between two devices. |
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. |