Pakete, Repositories und App-Kategorien suchen

Paketdetailsv3.0.0

esp_smartconfig

EspTouch und EspTouchV2 Implementierungen der SmartConfig Bereitstellungsprotokolle. Reiner Dart. Alle Plattformen.

AndroidiOSmacOSWindowsLinux
30-Tage-Downloads
580
Likes
46
Pub-Punkte
160

Paket installieren

flutter pub add esp_smartconfig

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Eine Dart-Implementierung der Esptouch- und EsptouchV2-Smart-Konfigurationsprotokolle für die Bereitstellung von IoT-Geräten. Ermöglicht eine nahtlose WLAN-Einrichtung von ESP8266/ESP32-Geräten über Smartphones oder Desktop-Apps, ohne direkten Netzwerkzugriff zu erfordern. Vollständig plattformunabhängig und unterstützt Android, iOS, macOS, Windows und Linux. Speziell für Entwickler konzipiert, die Zero-Touch-Gerätepaarung in plattformübergreifenden Flutter-Anwendungen integrieren möchten. Das Paket läuft vollständig in Dart und hat keine nativen Abhängigkeiten, was die Kompatibilität auf allen unterstützten Plattformen sicherstellt.

Anwendungsfälle

  • Onboarding von IoT-Geräten
  • Einrichtung von Smart-Home-Geräten
  • Eingebettete Gerätekonfiguration
  • Plattformübergreifende Wi-Fi-Bereitstellung
  • Automatisierte Geräteregistrierung

Hauptmerkmale

  • Esptouch und EsptouchV2 Unterstützung
  • Reine Dart-Implementierung
  • Plattformübergreifende Kompatibilität
  • Kein natives Code erforderlich
  • Leichtgewichtig und effizient
  • Sichere Übertragung von Wi-Fi-Anmeldeinformationen

Geeignet für

  • Flutter-Entwickler, die IoT-Apps erstellen
  • Hardware-Integrator, die ESP-Chips verwenden
  • Anwendungen, die eine berührungslose Geräteeinrichtung erfordern
  • Plattformübergreifende Lösungen für mobile Geräte/Desktop
  • Projekte, die native Plattformcode vermeiden

Hinweise

  • Kompatible ESP8266/ESP32-Firmware erforderlich
  • Auf mobilen Plattformen benötigte Netzwerkzugriffe
  • Beschränkt auf Geräte, die das Esptouch-Protokoll unterstützen
  • Behandelt Geräte-Neustart nach Konfiguration nicht
  • Am besten in lokalen Netzwerkumgebungen verwendet

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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

Kategorien

Abhängigkeiten

Abhängigkeiten 2 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden