Pakete, Repositories und App-Kategorien suchen

Paketdetailsv1.1.0

esptouch_smartconfig

Null-Safety Flutter ESP Touch Smart Config Plugin. Läuft auf Android und iOS. ESP-Geräte zum Verbinden mit dem Ziel-AP, die Geräte müssen Smart Config ausführen.

AndroidiOS
30-Tage-Downloads
98
Likes
25
Pub-Punkte
150

Paket installieren

flutter pub add esptouch_smartconfig

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein nullsicheres Flutter-Plugin, das ESP-Geräte ermöglicht, über Smart Config eine Ziel-WiFi-Netzwerkverbindung herzustellen. Es unterstützt sowohl Android als auch iOS und erleichtert die nahtlose Konfiguration von ESP-basierten IoT-Geräten durch Übertragung der WiFi-Anmeldeinformationen über die App. Das Plugin ist für ESP-Chips konzipiert, die den Smart Config-Protokoll unterstützen, wodurch Benutzer Geräte ohne manuelle Eingabe konfigurieren können. Ideal für Entwickler, die IoT-Anwendungen erstellen, die eine schnelle Geräteeinrichtung erfordern.

Anwendungsfälle

  • Onboarding von IoT-Geräten
  • Einrichtung von Smart-Home-Geräten
  • Konfiguration von drahtlosen Sensornetzen
  • Gerätepaarung für ESP32/ESP8266
  • Automatisierte Wi-Fi-Bereitstellung

Hauptmerkmale

  • Null-Sicherheit-Unterstützung
  • Plattformübergreifend (Android & iOS)
  • ESP Smart Config Integration
  • Einfache API für die Übertragung von Wi-Fi-Anmeldeinformationen
  • Echtzeit-Verbindungsfeedback

Geeignet für

  • IoT-Anwendungsentwickler
  • Hardware-Integrator
  • Ersteller von Smart-Home-Produkten
  • Embedded-Systems-Engineer
  • Prototyping-Teams

Hinweise

  • Erfordert ESP-Gerät mit Smart Config-Firmware
  • Beschränkt auf Geräte, die Smart Config unterstützen
  • Auf Android erforderliche Netzwerkberechtigungen
  • Einschränkungen für Hintergrundausführung unter iOS
  • Abhängig von der korrekten ESP-Firmware-Implementierung

Original-README

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

esptouch_smartconfig

Espressif’s ESP-TOUCH protocol implements the Smart Config technology to help users connect ESP8266EX- and ESP32-embedded devices (hereinafter referred to as the device) to a Wi-Fi network through simple configuration on a smartphone flutter app.

Getting Started

Android

Add Permission android/app/src/main/AndroidManifest.xml

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
iOS

image

Add ios/Info.plist

<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Used to Location's Info always for Using Beacon.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Used to Location's Info always for Using Beacon.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Used to Location's Info for Using Beacon when In Use.</string>

Usage

late Stream<ESPTouchResult>? _stream;
final Set<ESPTouchResult> _results = Set();

@override
  void initState() {
    _stream = EsptouchSmartconfig.run(widget.ssid, widget.bssid,
        widget.password, widget.deviceCount, widget.isBroadcast);
    super.initState();
  }
  
@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: IconButton(
            icon: Icon(Icons.arrow_back),
            onPressed: () {
              Navigator.of(context).pop(_results);
            }),
        backgroundColor: Colors.red,
        title: Text(
          'Task',
        ),
      ),
      body: Container(
        child: StreamBuilder<ESPTouchResult>(
          stream: _stream,
          builder: (context, AsyncSnapshot<ESPTouchResult> snapshot) {
            if (snapshot.hasError) {
              return error(context, 'Error in StreamBuilder');
            }
            switch (snapshot.connectionState) {
              case ConnectionState.active:
                _results.add(snapshot.data!);
                return resultList(context, ConnectionState.active);
              case ConnectionState.none:
                return noneState(context);
              case ConnectionState.done:
                if (snapshot.hasData) {
                  _results.add(snapshot.data!);
                  return resultList(context, ConnectionState.done);
                } else
                  return noneState(context);
              case ConnectionState.waiting:
                return waitingState(context);
            }
          },
        ),
      ),
    );
  } 

Reference

ESP Touch

https://github.com/smaho-engineering/esptouch_flutter
https://github.com/kittenbot/flutter_smartconfig
https://github.com/EspressifApp/EsptouchForIOS
https://github.com/EspressifApp/EsptouchForAndroid

Wifi Info

https://github.com/flutter/plugins

Version

iOS Version v2.2.0
Android Version v2.0.0

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.