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

パッケージ詳細v3.0.0

esp_smartconfig

SmartConfigプロビジョニングプロトコルのEspTouchおよびEspTouchV2実装。純粋なDart。すべてのプラットフォーム。

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
580
いいね数
46
Pub ポイント
160

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

flutter pub add esp_smartconfig

パッケージ概要

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

IoTデバイスのプロビジョニング用にEsptouchおよびEsptouchV2スマート構成プロトコルのDart実装です。スマートフォンやデスクトップアプリを介して、直接ネットワークアクセスなしでESP8266/ESP32デバイスのWi-Fi設定をスムーズに行えます。Android、iOS、macOS、Windows、Linuxをすべてサポートする、完全なプラットフォーム非依存型です。クロスプラットフォームのFlutterアプリケーションにゼロタッチデバイスペアリング機能を統合したい開発者向けに設計されています。ネイティブ依存関係が一切ないため、すべての対応プラットフォームで互換性を確保しています。

用途

  • IoTデバイスのオンボーディング
  • スマートホームギアのセットアップ
  • 埋め込みデバイスの設定
  • クロスプラットフォームWi-Fiプロビジョニング
  • 自動デバイス登録

主な機能

  • Esptouch および EsptouchV2 のサポート
  • 純粋な Dart 実装
  • マルチプラットフォーム互換性
  • ネイティブコードは不要です
  • 軽量で効率的
  • セキュアなWi-Fi資格情報の転送

適している対象

  • IoTアプリを構築するFlutter開発者
  • ESPチップを使用するハードウェア統合業者
  • タッチレスデバイスセットアップを必要とするアプリケーション
  • クロスプラットフォームのモバイル/デスクトップソリューション
  • ネイティブプラットフォームコードを避けるプロジェクト

注意事項

  • 互換性のある ESP8266/ESP32 ファームウェアが必要です
  • モバイルプラットフォームで必要なネットワーク権限
  • Esptouchプロトコルをサポートするデバイスに限定
  • 設定後のデバイス再起動に対応していません
  • ローカルネットワーク環境で最適に使用されます

元の README

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

esp_smartconfig

pub version license

Dart implementation of EspTouch provisioner. Supports Android, iOS, Windows, Linux and macOS.

Implemented protocols

  • EspTouch
  • EspTouch V2

Supported platforms

All non-web platforms are supported. Web platform is not supported mainly because browsers does not allow UDP communication.

If you are going to use this library on Desktop platforms make sure that UDP port 18266 is open in firewall for incoming data.

Breaking Change iOS 14.6/16

The breaking change was implemented with 14.6. However, it seems to be the case that the mentioned problem only occurs on devices with iOS version 16. It results in the fact that no connection to the ESP can be established.

How to:

  • You need an Apple-Developer account
  • After the Dev-Account has been approved, you have to make a request via this form to be allowed to use the Multicast Api.
  • Then you can follow this guide (new process)

Demo videos

Console App Flutter Mobile App
Demo Video - Console App Demo Video - Flutter Mobile App

Example

Several examples of using this library are available in example folder.

import 'package:esp_smartconfig/esp_smartconfig.dart';

final provisioner = Provisioner.espTouch();

provisioner.listen((response) {
    print("Device ${response.bssidText} connected to WiFi!");
});

try {
    await provisioner.start(ProvisioningRequest.fromStrings(
        ssid: "NETWORK NAME",
        bssid: "ROUTER BSSID", // Optional
        password: "NETWORK PASSWORD",
    ));

    // If you are going to use this library in Flutter
    // this is good place to show some Dialog and wait for exit
    //
    // Or simply you can delay with Future.delayed function
    await Future.delayed(Duration(seconds: 10));
} catch (e, s) {
    print(e);
}

// Provisioning does not have any timeout so it needs to be
// stopped manually
provisioner.stop();

SmartConfig

The SmartConfigTM is a provisioning technology to connect a new Wi-Fi device to a Wi-Fi network.

The advantage of this technology is that the device does not need to directly know SSID or password of an Access Point (AP). Those information is provided using this library. This is particularly important to headless device and systems, due to their lack of a user interface.

Author

GitHub: abobija
Homepage: abobija.com

License

MIT

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

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