パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.4.1+1

quick_blue

Flutter用のクロスプラットフォームBluetoothLEプラグイン。

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
62
いいね数
102
Pub ポイント
110

パッケージをインストール

flutter pub add quick_blue

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

QuickBlue は、Flutter 向けのクロスプラットフォーム Bluetooth Low Energy (BLE) プラグインであり、Android、iOS、macOS、Windows、Linux で BLE デバイスとやり取りできるようにします。スキャン、接続、読み取り、書き込み、BLE パーサルデバイスのモニタリングに使用できるシンプルで一貫した API を提供します。使いやすさを重視して設計されており、プラットフォーム固有の複雑さを抽象化しつつ、信頼性の高いパフォーマンスを維持しています。ウェアラブルデバイス、センサー、IoTハードウェアとのリアルタイムデータ交換が必要なアプリケーションに最適です。

用途

  • BLEビーコンに接続中
  • ウェアラブルデバイスからのセンサー データの読み取り
  • IoTデバイスの制御
  • 医療機器とのペアリング
  • リアルタイム健康モニタリング

主な機能

  • クロスプラットフォーム対応
  • BLE 操作のためのシンプルな API
  • 自動デバイス検出
  • イベント駆動型の接続処理
  • 特性通知のサポート

適している対象

  • IoTアプリケーション開発
  • ウェアラブルデバイスの統合
  • ヘルスとフィットネスアプリ
  • スマートホームシステム
  • BLE対応機能のプロトタイピング

注意事項

  • すべてのプラットフォームでBluetooth権限が必要です
  • BLEのみの機能に制限されています
  • プラットフォーム固有の動作は異なる場合があります
  • iOSにおけるバックグラウンド実行の制限
  • 組み込みの暗号化またはセキュリティレイヤーなし

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

quick_blue

A cross-platform (Android/iOS/macOS/Windows/Linux) BluetoothLE plugin for Flutter

Note: It is a federated plugin structure

Usage

General useful Bluetooth information

https://www.bluetooth.com/blog/4-essential-tools-for-every-bluetooth-low-energy-developer/

  1. Client Emulator Apps

  2. Bluetooth Sniffer

iOS/macOS specific info

On iOS/macOS some common service/characteristic would be shortened. Be careful when comparing the UUID. I haven't finished the refactor of notepad_core to quick_blue yet

On the Dart side you'd better call like: https://github.com/woodemi/notepad_core/blob/b0e329f3d6e02f14f8a0e5e48a6ddb48e026b658/notepad_core/lib/woodemi/WoodemiClient.dart#L245-L256

const CODE__SERV_BATTERY = "180f";
const CODE__CHAR_BATTERY_LEVEL = "2a19";

const SERV__BATTERY = "0000$CODE__SERV_BATTERY-$GSS_SUFFIX";
const CHAR__BATTERY_LEVEL = "0000$CODE__CHAR_BATTERY_LEVEL-$GSS_SUFFIX";

Common service/characteristic list

  • Official: https://www.bluetooth.com/specifications/specs/gatt-specification-supplement-5/
  • gist: https://gist.github.com/sam016/4abe921b5a9ee27f67b3686910293026
Windows specific info

Doc of samples: https://docs.microsoft.com/en-us/samples/microsoft/windows-universal-samples/bluetoothle Code of samples: https://github.com/microsoft/windows-universal-samples/tree/main/Samples/BluetoothLE

Some other help

There is a version restriction with Connection without pairing on C++/WinRT and Windows 10

  • https://answers.microsoft.com/en-us/windows/forum/all/reconnecting-a-paired-bluetooth-device-without/90b42dd3-2998-4393-9d89-1624e120502f
  • https://stackoverflow.com/questions/55765090/windows-bluetooth-le-require-pairing-before-connection
  • https://social.msdn.microsoft.com/Forums/azure/en-US/66d6fb43-e41e-4751-99fe-170b8f63ad22/uwpcc-uwp-bluetooth-communication-without-pairing?forum=wpdevelop
Linux specific info
  • BlueZ official: http://www.bluez.org/
  • Ubuntu official: https://ubuntu.com/core/docs/bluez
  • Ubuntu bluez package: https://github.com/canonical/bluez.dart
  • Doc of samples: https://www.bluetooth.com/wp-content/uploads/2019/03/T1804_How-to-set-up-BlueZ_LFC_FINAL-2.pdf

カテゴリー

依存関係

依存関係一覧 5 件

  • convert^3.0.0
  • quick_blue_linux^0.1.2
  • quick_blue_macos^0.3.1+2
  • quick_blue_platform_interface^0.3.2
  • quick_blue_windows^0.3.2

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。