espressif / esp-idf-provisioning-ios

Apache License 2.0
134 stars 64 forks source link

Cannot connect to the device #19

Closed numo68 closed 3 years ago

numo68 commented 3 years ago

The version in the app store (2.0.5 bcf81a2) does not work.

This is on iPhone 7 and iOS 14.3. The Android version works so the device part seems to be fine.

If there is some hidden way to fetch some logs I will happily provide them but I have no possibility to build an iOS app.

Thanks

vikas-chandra-mnnit commented 3 years ago

@numo68 Thanks for reporting this issue, we are working on it and will update you soon.

vikas-chandra-mnnit commented 3 years ago

Hi @numo68, I checked the app on iOS 14.3. I was able to manually connect to the device using the the App Store v2.0.5. Can you please check whether you have enabled the location services in the app. Starting from iOS 13 it is made mandatory to have location permission in order to verify the connected SSID.

numo68 commented 3 years ago

Hello, yes the location services are enabled with precise location, as is the permission to find devices on the local network. I also tried uninstalling and reinstalling. An interesting fact is that asking for the latter permission did not come with the first attempt, only later.

Investigating some more, interestingly it works on iPad with 14.3. Thinking about differences between the devices that could be relevant I can only think of "Lookout for Work" security solution being installed on the phone. Unfortunately I am not able to uninstall it as it is mandatory if I want to access my employer's data from the phone.

The application however does seem to know that it is connected to the AP with the specific name. With the QR code the dialog to join the device appears or does not appear depending on whether the AP is already connected. The difference seems to be somewhere between this and the proof of possession prompt.

shahpiyushv commented 3 years ago

@numo68 , is it possible that the "Lookout for Work" application does not allow communication over Open Wi-Fi networks, that too over HTTP and not HTTPS?

numo68 commented 3 years ago

Frankly the Lookout is quite foggy with what exactly they are doing. Securing the AP however does not make any difference, just the iPhone itself remarks that the WPA2(TKIP) is not considered secure and AES should be used. Trying to access the http://192.168.4.1 from the mobile's browser I get an answer "This URI does not exist" and the device logs "httpd_uri: httpd_uri: URI '/' not found" so this layer seems to work.

vikas-chandra-mnnit commented 3 years ago

@numo68 It seems the app is not able to fetch device version info at path http://192.168.4.1:80/proto-ver. In that case if you are trying to manually connect, then flow does not get past beyond connect screen. Also in QR mode it send status of failure in Connect API. Currently there is no way to export logs from the app. If possible can you please share the device logs instead, that may give us some clue of what is happening.

shahpiyushv commented 3 years ago

@numo68 , just to add, you can enable additional device side logging using this:

idf.py menuconfig -> Component config -> Log output -> Default log verbosity -> Debug

numo68 commented 3 years ago
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:6556
load:0x40078000,len:13952
load:0x40080400,len:4004
entry 0x40080698
I (28) boot: ESP-IDF 3.40100.200827 2nd stage bootloader
I (28) boot: compile time 17:54:39
I (28) boot: chip revision: 1
I (28) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (35) boot.esp32: SPI Speed      : 40MHz
I (39) boot.esp32: SPI Mode       : DIO
I (42) boot.esp32: SPI Flash Size : 4MB
I (46) boot: Enabling RNG early entropy source...
I (50) boot: Partition Table:
I (53) boot: ## Label            Usage          Type ST Offset   Length
I (59) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (66) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (72) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (79) boot:  3 ota_0            OTA app          00 10 00010000 001c0000
I (85) boot:  4 ota_1            OTA app          00 11 001d0000 001c0000
I (92) boot:  5 storage          Unknown data     01 82 00390000 00070000
I (98) boot: End of partition table
I (102) boot_comm: chip revision: 1, min. application chip revision: 0
I (108) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x27198 (160152) map
I (177) esp_image: segment 1: paddr=0x000371c0 vaddr=0x3ffb0000 size=0x039d0 ( 14800) load
I (183) esp_image: segment 2: paddr=0x0003ab98 vaddr=0x40080000 size=0x00404 (  1028) load
I (184) esp_image: segment 3: paddr=0x0003afa4 vaddr=0x40080404 size=0x05074 ( 20596) load
I (199) esp_image: segment 4: paddr=0x00040020 vaddr=0x400d0020 size=0x96ac4 (617156) map
I (434) esp_image: segment 5: paddr=0x000d6aec vaddr=0x40085478 size=0x11490 ( 70800) load
I (477) boot: Loaded app from partition at offset 0x10000
I (477) boot: Disabling RNG early entropy source...
I (477) cpu_start: Pro cpu up.
I (478) cpu_start: Application information:
I (482) cpu_start: Project name:     indoor-air-sensors
I (487) cpu_start: App version:      ec3b03b-dirty
I (492) cpu_start: Compile time:     Jan 11 2021 17:51:32
I (497) cpu_start: ELF file SHA256:  23d996c26e015c8b...
I (502) cpu_start: ESP-IDF:          3.40100.200827
I (506) cpu_start: Starting app cpu, entry point is 0x40081828
I (0) cpu_start: App cpu up.
D (515) memory_layout: Checking 7 reserved memory ranges:
D (520) memory_layout: Reserved memory range 0x3ffae000 - 0x3ffae6e0
D (526) memory_layout: Reserved memory range 0x3ffb0000 - 0x3ffb9ac8
D (532) memory_layout: Reserved memory range 0x3ffe0000 - 0x3ffe0440
D (538) memory_layout: Reserved memory range 0x3ffe3f20 - 0x3ffe4350
D (544) memory_layout: Reserved memory range 0x40070000 - 0x40078000
D (550) memory_layout: Reserved memory range 0x40078000 - 0x40080000
D (556) memory_layout: Reserved memory range 0x40080000 - 0x40096908
D (562) memory_layout: Building list of available memory regions:
D (568) memory_layout: Available memory region 0x3ffae6e0 - 0x3ffb0000
D (574) memory_layout: Available memory region 0x3ffb9ac8 - 0x3ffc0000
D (580) memory_layout: Available memory region 0x3ffc0000 - 0x3ffc2000
D (587) memory_layout: Available memory region 0x3ffc2000 - 0x3ffc4000
D (593) memory_layout: Available memory region 0x3ffc4000 - 0x3ffc6000
D (599) memory_layout: Available memory region 0x3ffc6000 - 0x3ffc8000
D (605) memory_layout: Available memory region 0x3ffc8000 - 0x3ffca000
D (612) memory_layout: Available memory region 0x3ffca000 - 0x3ffcc000
D (618) memory_layout: Available memory region 0x3ffcc000 - 0x3ffce000
D (624) memory_layout: Available memory region 0x3ffce000 - 0x3ffd0000
D (630) memory_layout: Available memory region 0x3ffd0000 - 0x3ffd2000
D (637) memory_layout: Available memory region 0x3ffd2000 - 0x3ffd4000
D (643) memory_layout: Available memory region 0x3ffd4000 - 0x3ffd6000
D (649) memory_layout: Available memory region 0x3ffd6000 - 0x3ffd8000
D (655) memory_layout: Available memory region 0x3ffd8000 - 0x3ffda000
D (662) memory_layout: Available memory region 0x3ffda000 - 0x3ffdc000
D (668) memory_layout: Available memory region 0x3ffdc000 - 0x3ffde000
D (674) memory_layout: Available memory region 0x3ffde000 - 0x3ffe0000
D (680) memory_layout: Available memory region 0x3ffe0440 - 0x3ffe3f20
D (687) memory_layout: Available memory region 0x3ffe4350 - 0x3ffe8000
D (693) memory_layout: Available memory region 0x3ffe8000 - 0x3fff0000
D (699) memory_layout: Available memory region 0x3fff0000 - 0x3fff8000
D (705) memory_layout: Available memory region 0x3fff8000 - 0x3fffc000
D (712) memory_layout: Available memory region 0x3fffc000 - 0x40000000
D (718) memory_layout: Available memory region 0x40096908 - 0x40098000
D (724) memory_layout: Available memory region 0x40098000 - 0x4009a000
D (730) memory_layout: Available memory region 0x4009a000 - 0x4009c000
D (737) memory_layout: Available memory region 0x4009c000 - 0x4009e000
D (743) memory_layout: Available memory region 0x4009e000 - 0x400a0000
I (749) heap_init: Initializing. RAM available for dynamic allocation:
D (755) heap_init: New heap initialised at 0x3ffae6e0
I (760) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
D (765) heap_init: New heap initialised at 0x3ffb9ac8
I (770) heap_init: At 3FFB9AC8 len 00026538 (153 KiB): DRAM
I (775) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (781) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
D (786) heap_init: New heap initialised at 0x40096908
I (791) heap_init: At 40096908 len 000096F8 (37 KiB): IRAM
I (796) cpu_start: Pro cpu start user code
D (807) clk: RTC_SLOW_CLK calibration value: 3240755
D (817) intr_alloc: Connected src 46 to int 2 (cpu 0)
D (817) intr_alloc: Connected src 57 to int 3 (cpu 0)
D (818) intr_alloc: Connected src 24 to int 9 (cpu 0)
D (822) FLASH_HAL: extra_dummy: 1
D (824) spi_flash: trying chip: issi
D (828) spi_flash: trying chip: gd
D (831) spi_flash: trying chip: generic
I (834) spi_flash: detected chip: generic
I (838) spi_flash: flash io: dio
D (841) chip_generic: set_io_mode: status before 0x0
I (846) cpu_start: Starting scheduler on PRO CPU.
D (0) intr_alloc: Connected src 25 to int 2 (cpu 1)
I (0) cpu_start: Starting scheduler on APP CPU.
D (859) heap_init: New heap initialised at 0x3ffe0440
D (869) heap_init: New heap initialised at 0x3ffe4350
D (869) intr_alloc: Connected src 16 to int 12 (cpu 0)
D (879) partition: Loading the partition table
D (919) esp_netif_lwip: LwIP stack has been initialized
D (919) esp_netif_lwip: esp-netif has been successfully initialized
D (919) event: running task for loop 0x3ffbeea4
D (919) event: created task for loop 0x3ffbeea4
D (929) event: created event loop 0x3ffbeea4
D (929) esp_netif_objects: esp_netif_add_to_list 0x3ffbfe84
D (929) esp_netif_objects: esp_netif_add_to_list netif added successfully (total netifs: 1)
D (939) esp_netif_objects: esp_netif_add_to_list 0x3ffc0180
D (949) esp_netif_objects: esp_netif_add_to_list netif added successfully (total netifs: 2)
D (959) nvs: nvs_open_from_partition misc 1
D (959) nvs: nvs_get_str_or_blob log
I (969) wifi:wifi driver task: 3ffc2570, prio:23, stack:6656, core=0
I (969) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
D (979) efuse: coding scheme 0
D (979) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 8 bit
D (989) efuse: coding scheme 0
D (989) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 0 bit
D (999) efuse: coding scheme 0
D (999) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 24 bit
D (1009) efuse: coding scheme 0
D (1009) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 16 bit
D (1019) efuse: coding scheme 0
D (1019) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 8 bit
D (1029) efuse: coding scheme 0
D (1029) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 0 bit
D (1029) efuse: coding scheme 0
D (1039) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 16 bit
I (1039) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
D (1049) efuse: coding scheme 0
D (1059) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 8 bit
D (1059) efuse: coding scheme 0
D (1069) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 0 bit
D (1069) efuse: coding scheme 0
D (1079) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 24 bit
D (1079) efuse: coding scheme 0
D (1079) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 16 bit
D (1089) efuse: coding scheme 0
D (1089) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 8 bit
D (1099) efuse: coding scheme 0
D (1099) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 0 bit
D (1109) efuse: coding scheme 0
D (1109) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 16 bit
D (1119) nvs: nvs_open_from_partition nvs.net80211 1
D (1129) nvs: nvs_get opmode 1
D (1129) nvs: nvs_get_str_or_blob sta.ssid
D (1129) nvs: nvs_get_str_or_blob sta.mac
D (1139) nvs: nvs_get sta.authmode 1
D (1139) nvs: nvs_get_str_or_blob sta.pswd
D (1139) nvs: nvs_get_str_or_blob sta.pmk
D (1149) nvs: nvs_get sta.chan 1
D (1149) nvs: nvs_get auto.conn 1
D (1149) nvs: nvs_get bssid.set 1
D (1159) nvs: nvs_get_str_or_blob sta.bssid
D (1159) nvs: nvs_get sta.lis_intval 2
D (1159) nvs: nvs_get sta.phym 1
D (1169) nvs: nvs_get sta.phybw 1
D (1169) nvs: nvs_get_str_or_blob sta.apsw
D (1169) nvs: nvs_get_str_or_blob sta.apinfo
D (1179) nvs: nvs_get sta.scan_method 1
D (1179) nvs: nvs_get sta.sort_method 1
D (1179) nvs: nvs_get sta.minrssi 1
D (1189) nvs: nvs_get sta.minauth 1
D (1189) nvs: nvs_get sta.pmf_e 1
D (1189) nvs: nvs_get sta.pmf_r 1
D (1199) nvs: nvs_get_str_or_blob ap.ssid
D (1199) nvs: nvs_get_str_or_blob ap.mac
D (1199) nvs: nvs_get_str_or_blob ap.passwd
D (1209) nvs: nvs_get_str_or_blob ap.pmk
D (1209) nvs: nvs_get ap.chan 1
D (1209) nvs: nvs_get ap.authmode 1
D (1219) nvs: nvs_get ap.hidden 1
D (1219) nvs: nvs_get ap.max.conn 1
D (1219) nvs: nvs_get bcn.interval 2
D (1229) nvs: nvs_get ap.phym 1
D (1229) nvs: nvs_get ap.phybw 1
D (1229) nvs: nvs_get ap.sndchan 1
D (1239) nvs: nvs_get ap.pmf_e 1
D (1239) nvs: nvs_get ap.pmf_r 1
D (1239) nvs: nvs_get lorate 1
D (1239) nvs: nvs_set ap.sndchan 1 1
D (1249) nvs: nvs_set_blob sta.mac 6
D (1249) nvs: nvs_set_blob ap.mac 6
I (1249) wifi:wifi firmware version: 3ea4c76
I (1259) wifi:config NVS flash: enabled
I (1259) wifi:config nano formating: disabled
I (1269) wifi:Init dynamic tx buffer num: 32
I (1269) wifi:Init data frame dynamic rx buffer num: 32
I (1269) wifi:Init management frame dynamic rx buffer num: 32
I (1279) wifi:Init management short buffer num: 32
I (1279) wifi:Init static rx buffer size: 1600
I (1289) wifi:Init static rx buffer num: 10
I (1289) wifi:Init dynamic rx buffer num: 32
D (1299) esp_netif_lwip: esp_netif_get_ip6_linklocal esp-netif:0x3ffbfe84
D (1299) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3ffbfe84
D (1309) esp_netif_lwip: esp_netif_get_ip6_linklocal esp-netif:0x3ffc0180
D (1319) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3ffc0180
D (1319) esp_netif_lwip: esp_netif_get_ip6_linklocal esp-netif:0x0
D (1329) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x0
D (1329) wifi_prov_mgr: execute_event_cb : 0
D (1339) event: running post WIFI_PROV_EVENT:0 with handler 0x400d49c4 on loop 0x3ffbeea4
I (1339) simpleprov: Starting provisioning
D (1349) phy_init: loading PHY init data from application binary
D (1349) nvs: nvs_open_from_partition phy 0
D (1359) nvs: nvs_get cal_version 4
D (1359) nvs: nvs_get_str_or_blob cal_mac
D (1369) efuse: coding scheme 0
D (1369) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 8 bit
D (1369) efuse: coding scheme 0
D (1379) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 0 bit
D (1379) efuse: coding scheme 0
D (1389) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 24 bit
D (1389) efuse: coding scheme 0
D (1399) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 16 bit
D (1399) efuse: coding scheme 0
D (1409) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 8 bit
D (1409) efuse: coding scheme 0
D (1419) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 0 bit
D (1419) efuse: coding scheme 0
D (1429) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 16 bit
D (1429) nvs: nvs_get_str_or_blob cal_data
D (1439) nvs: nvs_close 3
D (1439) efuse: coding scheme 0
D (1439) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 8 bit
D (1449) efuse: coding scheme 0
D (1449) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 0 bit
D (1459) efuse: coding scheme 0
D (1459) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 24 bit
D (1469) efuse: coding scheme 0
D (1469) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 16 bit
D (1479) efuse: coding scheme 0
D (1479) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 8 bit
D (1489) efuse: coding scheme 0
D (1489) efuse: In EFUSE_BLK0__DATA1_REG is used 8 bits starting with 0 bit
D (1499) efuse: coding scheme 0
D (1499) efuse: In EFUSE_BLK0__DATA2_REG is used 8 bits starting with 16 bit
I (1589) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0
I (1589) wifi:mode : sta (30:ae:a4:d3:35:3c)
D (1589) event: running post WIFI_EVENT:2 with handler 0x400d49c4 on loop 0x3ffbeea4
D (1589) esp_netif_lwip: check: remote, if=0x3ffbfe84 fn=0x400e5064

D (1599) esp_netif_lwip: esp_netif_set_hostname_api esp_netif:0x3ffbfe84 hostname espd3353c
D (1609) esp_netif_lwip: call api in lwip: ret=0x0, give sem
D (1609) event: running post WIFI_EVENT:2 with handler 0x400e6064 on loop 0x3ffbeea4
D (1619) wifi_init_default: wifi_start esp-netif:0x3ffbfe84 event-id2
D (1629) wifi_init_default: WIFI mac address: 30 ae a4 d3 35 3c
D (1629) esp_netif_handlers: esp_netif action has started with netif0x3ffbfe84 from event_id=2
D (1639) esp_netif_lwip: check: remote, if=0x3ffbfe84 fn=0x400e5758

D (1649) esp_netif_lwip: esp_netif_start_api 0x3ffbfe84
D (1649) esp_netif_lwip: call api in lwip: ret=0x0, give sem
D (1659) event: running post WIFI_EVENT:2 with handler 0x400d5318 on loop 0x3ffbeea4
D (1659) httpd: httpd_thread: web server started
I (1669) wifi:D (1669) httpd: httpd_server: doing select maxfd+1 = 56
mode : sta (30:ae:a4:d3:35:3c) + softAP (30:ae:a4:d3:35:3d)
I (1679) wifi:Total power save buffer number: 16
I (1679) wifi:Init max length of beacon: 752/752
I (1689) wifi:Init max length of beacon: 752/752
D (1689) event: running post WIFI_EVENT:12 with handler 0x400d49c4 on loop 0x3ffbeea4
D (1699) event: running post WIFI_EVENT:12 with handler 0x400e604c on loop 0x3ffbeea4
D (1709) wifi_init_default: wifi_start esp-netif:0x3ffc0180 event-id12
D (1709) wifi_init_default: WIFI mac address: 30 ae a4 d3 35 3d
D (1719) esp_netif_handlers: esp_netif action has started with netif0x3ffc0180 from event_id=12
D (1729) esp_netif_lwip: check: remote, if=0x3ffc0180 fn=0x400e5758

D (1729) esp_netif_lwip: esp_netif_start_api 0x3ffc0180
I (1739) wifi:Total power save buffer number: 16D (1739) esp_netif_lwip: esp_netif_start_api Setting the lwip netif0x3ffc0200 UP

D (1749) esp_netif_lwip: DHCP server started successfully
D (1749) protocomm_httpd: Adding endpoint : proto-ver
D (1759) esp_netif_lwip: call api in lwip: ret=0x0, give sem
D (1769) event: running post WIFI_EVENT:12 with handler 0x400d5318 on loop 0x3ffbeea4
D (1769) event: running post WIFI_EVENT:13 with handler 0x400d49c4 on loop 0x3ffbeea4
D (1779) event: running post WIFI_EVENT:13 with handler 0x400e5f58 on loop 0x3ffbeea4
D (1789) esp_netif_handlers: esp_netif action stopped with netif0x3ffc0180 from event_id=13
D (1799) esp_netif_lwip: check: remote, if=0x3ffc0180 fn=0x400e5940

D (1799) esp_netif_lwip: call api in lwip: ret=0x0, give sem
D (1809) event: running post WIFI_EVENT:13 with handler 0x400d5318 on loop 0x3ffbeea4
D (1819) event: running post WIFI_EVENT:12 with handler 0x400d49c4 on loop 0x3ffbeea4
D (1819) event: running post WIFI_EVENT:12 with handler 0x400e604c on loop 0x3ffbeea4
D (1829) wifi_init_default: wifi_start esp-netif:0x3ffc0180 event-id12
D (1839) wifi_init_default: WIFI mac address: 30 ae a4 d3 35 3d
D (1839) esp_netif_handlers: esp_netif action has started with netif0x3ffc0180 from event_id=12
D (1849) esp_netif_lwip: check: remote, if=0x3ffc0180 fn=0x400e5758

D (1859) esp_netif_lwip: esp_netif_start_api 0x3ffc0180
D (1799) httpd_uri: httpd_register_uri_handler: [0] installed /proto-ver
D (1859) esp_netif_lwip: esp_netif_start_api Setting the lwip netif0x3ffc0200 UP
D (1879) esp_netif_lwip: DHCP server started successfully
D (1879) esp_netif_lwip: call api in lwip: ret=0x0, give sem
D (1889) event: running post WIFI_EVENT:12 with handler 0x400d5318 on loop 0x3ffbeea4
D (1889) protocomm_httpd: Adding endpoint : prov-session
D (1899) httpd_uri: httpd_find_uri_handler: [0] = /proto-ver
D (1899) httpd_uri: httpd_register_uri_handler: [0] exists /proto-ver
D (1909) httpd_uri: httpd_register_uri_handler: [1] installed /prov-session
D (1919) protocomm_httpd: Adding endpoint : prov-config
D (1919) httpd_uri: httpd_find_uri_handler: [0] = /proto-ver
D (1929) httpd_uri: httpd_find_uri_handler: [1] = /prov-session
D (1929) httpd_uri: httpd_register_uri_handler: [0] exists /proto-ver
D (1939) httpd_uri: httpd_register_uri_handler: [1] exists /prov-session
D (1949) httpd_uri: httpd_register_uri_handler: [2] installed /prov-config
D (1949) protocomm_httpd: Adding endpoint : prov-scan
D (1959) httpd_uri: httpd_find_uri_handler: [0] = /proto-ver
D (1959) httpd_uri: httpd_find_uri_handler: [1] = /prov-session
D (1969) httpd_uri: httpd_find_uri_handler: [2] = /prov-config
D (1969) httpd_uri: httpd_register_uri_handler: [0] exists /proto-ver
D (1979) httpd_uri: httpd_register_uri_handler: [1] exists /prov-session
D (1989) httpd_uri: httpd_register_uri_handler: [2] exists /prov-config
D (1989) httpd_uri: httpd_register_uri_handler: [3] installed /prov-scan
I (1999) wifi_prov_mgr: Provisioning started with service name : PROV_D3353C 
D (2009) wifi_prov_mgr: execute_event_cb : 1
D (2009) event: running post WIFI_PROV_EVENT:1 with handler 0x400d49c4 on loop 0x3ffbeea4
I (2019) simpleprov: Provisioning started
D (2129) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3ffc0180
D (2429) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3ffc0180
D (2729) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3ffc0180
D (3029) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3ffc0180
D (4129) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3ffc0180
D (5229) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3ffc0180
I (15819) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<0,0>, prof:1
I (15819) wifi:station: 1e:4a:ef:8e:e7:bb join, AID=1, bgn, 20
D (15829) event: running post WIFI_EVENT:14 with handler 0x400d49c4 on loop 0x3ffbeea4
D (15829) event: running post WIFI_EVENT:14 with handler 0x400d5318 on loop 0x3ffbeea4
D (15839) event: running post WIFI_EVENT:14 with handler 0x400db36c on loop 0x3ffbeea4
D (16029) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3ffc0180
I (16029) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
D (16029) event: running post IP_EVENT:2 with handler 0x400d5318 on loop 0x3ffbeea4

That's all, nothing happens afterwards regardless of what I do with the iPhone. On the iPad there is a webserver connection and a request to /proto-ver as expected.

I still cannot exclude the Lookout for Work messing with this and unfortunately I can neither try without nor find an information what it does exactly. If there are no debug logs from the app I'm afraid this issue will have to be put on hold and wait whether anyone can reproduce it without that. Thanks for the support.

vikas-chandra-mnnit commented 3 years ago

@numo68 Thanks for the logs. From this logs we can make the same deduction that something is blocking the HTTP request. Unfortunately we don't have provision to export logs in the app yet so you can put this issue on hold. If we found any similar issue and updates on this we will surely let you know.

vikas-chandra-mnnit commented 3 years ago

@numo68 Hi, we have updated our SoftAP provisioning app in App Store https://apps.apple.com/in/app/esp-softap-provisioning/id1474040630. We have added permission key for local network in the app. We are hoping that this will fix the above issue. We will greatly appreciate if you can try out this app in your iPhone 7 and share us the result for it. Thanks.

numo68 commented 3 years ago

We will greatly appreciate if you can try out this app in your iPhone 7 and share us the result for it. Thanks.

I confirm that it works now. Thanks!