esp-idf-provisioning-ios icon indicating copy to clipboard operation
esp-idf-provisioning-ios copied to clipboard

The network connection was lost

Open mayur1816 opened this issue 4 years ago • 3 comments

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}

mayur1816 avatar Jul 20 '21 15:07 mayur1816

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.

vikas-chandra-mnnit avatar Jul 21 '21 13:07 vikas-chandra-mnnit

  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

mayur1816 avatar Jul 22 '21 05:07 mayur1816

@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.

vikas-chandra-mnnit avatar Jul 22 '21 19:07 vikas-chandra-mnnit