Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESPTOUCH_V2 does not send acknolwdgement correctly to Flutter #31

Open
htg20 opened this issue Jun 7, 2024 · 1 comment
Open

ESPTOUCH_V2 does not send acknolwdgement correctly to Flutter #31

htg20 opened this issue Jun 7, 2024 · 1 comment

Comments

@htg20
Copy link

htg20 commented Jun 7, 2024

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",
  ));
@webaddicted
Copy link

@htg20,

I have an iOT project. Where I need to send home wifi credentials on iOT device.

Firstly, I have to connect the mobile app to the iOT device hotspot. Then send wifi credentials to the iOT device without internet. then the device automatically connects to WiFi.

I already try lots of package but not been able to achieve this task.

I tried Following package wifi_iot flutter_iot_wifi flutter_esp_ble_prov esp_provisioning_ble esp_provisioning_softap

Can you tell me how I can achieve this?

My contact details is [email protected]

Please help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants