esp_smartconfig 1.0.1 copy "esp_smartconfig: ^1.0.1" to clipboard
esp_smartconfig: ^1.0.1 copied to clipboard

outdated

Implementations of EspTouch and EspTouchV2 SmartConfig provisioning protocols. No platform specific.

esp_smartconfig #

pub version license

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.

Implemented protocols #

NOTE: All protocols currently supports only broadcast mode.

  • EspTouch
  • EspTouch V2

Example #

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

import 'package:esp_smartconfig/esp_smartconfig.dart';

final provisioner = Provisioner.espTouch();

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

try {
    await provisioner.start(ProvisioningRequest.fromStrings(
        ssid: "NETWORK NAME",
        bssid: "ROUTER BSSID",
        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();

Author #

GitHub: abobija
Homepage: abobija.com

License #

MIT

33
likes
0
pub points
85%
popularity

Publisher

verified publisherabobija.com

Implementations of EspTouch and EspTouchV2 SmartConfig provisioning protocols. No platform specific.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

loggerx, pointycastle

More

Packages that depend on esp_smartconfig