espressif / esp-idf-provisioning-ios

Apache License 2.0
130 stars 62 forks source link

The network connection was lost #37

Open mayur1816 opened 2 years ago

mayur1816 commented 2 years ago

When I am trying to send network credentials I am getting the below error. NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=http://192.168.4.1:80/prov-config, NSErrorFailingURLKey=http://192.168.4.1:80/prov-config, _kCFStreamErrorDomainKey=4}

vikas-chandra-mnnit commented 2 years ago

Hi @mayur1816, please provide the below details for the issue:

  1. iOS version.
  2. App version.
  3. Steps to reproduce.
  4. Screenshots if applicable.

Also, we are in the process of fixing a known issue related to SoftAP provisioning. So I recommend you to check this thread and let us know if any steps or observations were relevant to your problem.

mayur1816 commented 2 years ago
  1. iOS Varsion - 14.4
  2. App Version - 2.0.11 I am also facing same issue using library
  3. Steps : -> Enter Proof of Possession -> Click Next -> join other network (Enter credentials) -> Click Connect The app will be stuck at sending Wi-Fi credentials.

I have checked logs and the below error is displayed. "NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=http://192.168.4.1:80/prov-config, NSErrorFailingURLKey=http://192.168.4.1:80/prov-config, _kCFStreamErrorDomainKey=4}"

4: Screenshots WhatsApp Image 2021-07-22 at 11 00 06 AM

vikas-chandra-mnnit commented 2 years ago

@mayur1816 We could not reproduce this behaviour at our end with iOS 14.6. From your description, it looks like iPhone is getting disconnected from the SoftAP automatically. Can you check if iPhone is connected with the expected network at the time this error is thrown? Also, please attach device logs of the ESP device for further investigation.