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

套件詳情v1.1.4

mdns_plugin

適用於 iOS 與 Android 的 mDNS 服務發現插件,可根據本地網路上的服務發現產生事件。

近 30 天下載
47
喜歡數
8
Pub 分數
40

安裝套件

flutter pub add mdns_plugin

套件介紹

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

mdns_plugin 是一個 Flutter/Dart 套件,可在 iOS 與 Android 裝置上啟用 mDNS(多播 DNS)服務發現。它允許應用程式偵測並與本地網路上的服務互動,例如印表機、智慧家庭裝置或自訂網路服務。當發現新服務或服務無法使用時,該套件會發出事件,促進即時網路感知。非常適合需要在本地環境中實現零設定網路的應用程式。

適用情境

  • 發現本地網路設備
  • 連接到物聯網設備
  • 啟用零設定網路
  • 建構本地服務整合
  • 即時設備存在檢測

主要特色

  • 跨平台支援(iOS 與 Android)
  • 事件驅動的服務發現
  • 本地網路服務掃描
  • 用於監聽服務事件的簡單 API
  • 輕便高效

適合對象

  • 物聯網應用開發者
  • 本地網絡工具建構者
  • 智慧家庭應用開發者
  • 網路感知移動應用
  • 需要自動設備檢測的應用程式

使用建議

  • 需要本地網絡訪問
  • 可能無法在某些防火牆後工作
  • 僅限本地子網發現
  • 無內建加密或驗證
  • 性能取決於網路狀況

原始 README

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

flutter

CircleCI

This repository includes Flutter application and packages.

The applications here are developed on the v1 branch and currently a configuration is included to use CircleCI to build Android APK's when merged into the master branch. The APK images can be downloaded as artifacts from CircleCI once built.

mDNS Plugin

A Flutter mDNS package, which is published at pub.dev. The example which demonstrates the use is here.

gRPC Plugin

A package which provides connection and reflection for remote gRPC services. Please see pub.dev for the package information, and the example which demonstrates the use is here.

Notes on developing a gRPC Client

On a Macintosh, use the following commands in order to make a working gRPC installation, assuming you have Homebrew already installed:

bash% brew install grpc && brew upgrade grpc

We assume that the protocol buffer files (with extension .proto) are in the folder lib/protobuf of your project. The generated output should go into the lib/providers folder.

For Macintosh, there is a script in order to generate the Dart files:

bash% git clone git@github.com:djthorpe/flutter.git
bash% cd flutter/grpc_client
bash% install -d lib/providers/google/protobuf
bash% install -d lib/providers/grpc/reflection/v1alpha
bash% source ../genproto-darwin.sh
bash% flutter test && flutter build ios

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。