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

套件詳情v0.1.0

web_view_ble

為 WebView Flutter 添加藍牙低功耗支援(適用於 Android 和 iOS)

AndroidiOS
近 30 天下載
13
喜歡數
2
Pub 分數
130

安裝套件

flutter pub add web_view_ble

套件介紹

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

web_view_ble 是一個 Flutter 套件,可在 Android 與 iOS 的 WebView 中啟用藍牙低功耗(BLE)功能。它彌補了原生 BLE 功能與 WebView 中呈現的網頁內容之間的差距,讓基於網頁的應用程式能夠與 BLE 裝置互動。此整合對於物聯網應用特別實用,因為網頁介面需要與 BLE 外接裝置通訊。該套件提供一種無縫存取 BLE 功能的方式,無需進行完整的原生應用開發。它支援兩大主要行動平台,並設計為可直接與現有網頁內容搭配使用。

適用情境

  • 透過網頁介面控制物聯網裝置
  • 行動裝置上的BLE啟用網路應用
  • 即時傳感器數據監控
  • 基於網路的醫療設備介面
  • BLE周邊設備的遠端設定

主要特色

  • WebView 中的 BLE 集成
  • 跨平台支援(Android 與 iOS)
  • 從網頁內容存取原生藍牙
  • 簡單的 Flutter 插件設定
  • 與BLE裝置的安全通訊

適合對象

  • 開發物聯網網路應用的開發者
  • 使用網頁視圖進行BLE互動的團隊
  • 需要BLE的移動應用以及Web UI
  • 原型設計 BLE 網頁介面
  • 需要BLE支援的混合應用開發人員

使用建議

  • 需要平台特定權限
  • 僅限BLE功能
  • 可能需要額外的網頁程式碼才能實現完整的藍牙低功耗控制
  • 不適合複雜的BLE操作
  • 依賴於正確的 WebView 設定

原始 README

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

WebView Ble

web_view_ble version

Flutter library To add Bluetooth Low Energy Support in WebView Flutter

Getting Started

Using flutter_inappwebview for WebView, Make sure to Check their docs for setting up WebView

And universal_ble for bluetooth, check docs for platform specific setup

Usage

Make sure to ask bluetooth permission first, check universal_ble for more details

In your onLoadStop callback of flutter_inappwebview , add this method

WebViewBle.setup(controller: controller, context: context);

Dispose when not needed anymore

WebViewBle.dispose();

Checkout /example for more details

Features

The web_view_ble lib supports the following bluetooth Api's:

  • Request Device (Filters : ServiceId , name , namePrefix, manufacturerData)
  • Connect
  • Disconnect
  • Discover services
  • Discover characteristics
  • Read/Write
  • Subscribe/Unsubscribe
  • GetAvailability / AvailabilityChanged events

Attribution

Thanks to WebBle for Ble javascript Polyfill, This project is licensed under the Apache Version 2.0 License as per the LICENSE file.

Additional information

This is Just The Initial Version feel free to Contribute or Report any Bug!

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。