我尝试写一个简单的例程来使用蓝牙模块
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
int main() {
// 获取第一个可用的蓝牙适配器ID
int dev_id = hci_get_route(NULL);
if (dev_id < 0) {
perror("没有找到蓝牙适配器");
exit(1 ...
Search found 1 match
- 2025-08-31 8:57
- Forum: Luckfox Lyra-RK3506
- Topic: 编译蓝牙应用时报错
- Replies: 1
- Views: 1193
