搜尋套件、儲存庫與 APP 分類

套件詳情v0.9.0

bluez

提供一個客戶端以連接到 BlueZ - Linux 藍牙堆疊。

Linux
近 30 天下載
37.2萬
喜歡數
45
Pub 分數
150

安裝套件

flutter pub add bluez

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

bluez 套件提供了一個 Dart 客戶端,可用於連接到 BlueZ(官方 Linux 藍牙堆疊)。它讓在 Linux 上執行的 Flutter 應用程式能與藍牙裝置互動,促進發現周圍裝置、建立連接以及資料交換等任務。專為 Linux 環境設計,可順暢整合至系統的原生藍牙基礎架構。此套件非常適合開發需要藍牙功能的 Linux 原生應用程式,例如物聯網控制器、週邊通訊工具或裝置管理實用程式。

適用情境

  • 基於Linux的藍牙裝置搜尋
  • 連接到藍牙外設
  • 透過藍牙控制物聯網裝置
  • Linux 應用中的藍牙資料傳輸
  • 系統級藍牙整合

主要特色

  • 原生 BlueZ 集成
  • 僅限 Linux 的平台支援
  • 基於 Dart 的非同步 API
  • 支援藍牙 LE 與傳統藍牙
  • 低階藍牙堆疊存取

適合對象

  • 針對 Linux 平台的開發者
  • 物聯網應用創建者
  • 系統級藍牙工具建構者
  • Linux桌面應用程式開發者
  • 藍牙協定實驗者

使用建議

  • 僅限 Linux 作業系統
  • 需要執行 BlueZ 守護進程
  • 不支援行動裝置或Windows
  • 高級用法需要藍牙知識
  • 在 Linux 上可能需要配置權限

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Pub Package codecov

Provides a client to connect to BlueZ - the Linux Bluetooth stack.

import 'package:bluez/bluez.dart';

final client = BlueZClient();
await client.connect();

for (final device in client.devices) {
  print('Device ${device.address} ${device.alias}');
}

await client.close();

Supported platforms

This package is designed for use on Linux, as the BlueZ stack is Linux-specific (other platforms have their own Bluetooth stacks). You can safely include this package when writing applications that work on multiple platforms, but it will fail with an exception when being used if BlueZ is not present.

Contributing to bluez.dart

We welcome contributions! See the contribution guide for more details.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案