Skip to content

ESPTOUCH_V2 does not send acknolwdgement correctly to Flutter #31

@htg20

Description

@htg20

Hello!

I am running my ESP32 IDF code with "esp-smartconfig-dart" which works fine for ESPTOUCH protocol. However, switching to protocol ESPTOUCH_V2 , the device recieved the SSID, password and reserved data correctly and can connect to Wifi. However, it cannot send the acknowlegedment data back the Java app from

https://github.com/EspressifApp/EsptouchForAndroid/tree/master

and it works fine.

My code below. Do I miss something to configure?

  final provisioner = Provisioner.espTouchV2();
  final ssidController = ref.read(ssidControllerProvider);
  final passwordController = ref.read(passwordControllerProvider);
  final wifiCredentialsNotifier =
      ref.read(wifiCredentialsProvider.notifier);

  provisioner.listen((response) {
    Navigator.of(context).pop(response);
  });

  provisioner.start(ProvisioningRequest.fromStrings(
    ssid: ssidController.text,
    bssid: '00:00:00:00:00:00',
    password: passwordController.text,
    reservedData:
        "Hello from Dart123665656565688994643976464564646464646549876544654---",
    encryptionKey: "MySecretKey!6754",
  ));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions