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. |
Bluetooth File Transfer | Transfer files between Bluetooth devices. |
蓝牙扫描器 | Scan for Bluetooth devices. |
范例 | 描述 |
---|---|
QML Bluetooth Chat Example | Simple chat client via Bluetooth. |
QML Bluetooth Picture Push Example | Transfer pictures between Bluetooth devices. |
QML 蓝牙乒乓 | Ping pong game demonstrating Bluetooth socket communication between two devices. |
QML 蓝牙扫描器 | Scan for Bluetooth devices and services. |
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. |