nicop2000 / esp_provisioning_softap

Other
5 stars 5 forks source link

esp_provisioning_softap

A Flutter plugin for provisioning ESP32 modules with SoftAP

GitHub release GitHub license

Example App

GIF by original pub-package esp_softap_provisioning

Comparison

Comparison to esp_provisioning:

Repo softap support ble support cryptography protobuf
esp_provisioning_softap :heavy_check_mark: :heavy_multiplication_x: :heavy_check_mark: (2.0.1) :heavy_check_mark: (2.0.0)
esp_provisioning :heavy_multiplication_x: :heavy_check_mark: :heavy_check_mark: (1.4.1) :heavy_check_mark: (1.0.1)

Last update: 24 / 03 / 2022

Usage

Changes on pubspec.yaml flutter pub add esp_provisioning_softap_null_safe

then, run flutter pub get,

We need to give permissions for http connections.

Add <uses-permission android:name="android.permission.INTERNET"/> and android:usesCleartextTraffic="true" to AndroidManifest.xml.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
   <uses-permission android:name="android.permission.INTERNET"/> 
   <application
         ...
         android:usesCleartextTraffic="true" 
         ...
   ...

For iOS, it's recommended to put platform version >= 9.0 , You can edit this variable from Podfile (/ios/Podfile)

Library is ready to use, you can check example app directory for implementation. Notice that Proof of posession (POP) should be matching with ESP's.

Credits

The original package by Omer Taban referred to: