Page 1 of 1

Error Device could not be connected. Please try again

Posted: Tue Jul 20, 2021 7:49 pm
by myglc2
Using an ESP32-WROOM-32E performing these steps:

'idf.py build flash monitor'

successful iPhone add using QRcode

'esptool.py --port $(ESPPORT) erase_region 0x10000 0x6000'

'idf.py build flash monitor' (Note: produced same QR code)

iPhone add fails:

Error
Device could not be connected.
Please try again

TIA - George

PS: Might this be a quota problem?

Re: Error Device could not be connected. Please try again

Posted: Thu Jul 22, 2021 4:19 pm
by ESP_Piyush
Hi George,

No, this is not a quota problem. Often, we have seen that the iOS caches some BLE data and so, the RainMaker app gets stale data and is unable to discover the device with the new name. A poor way to verify this is to reboot your iPhone :? . Can you try that once and let us know if provisioning works after that?

Re: Error Device could not be connected. Please try again

Posted: Fri Jul 23, 2021 1:07 am
by myglc2
Hi Piyush,

Thanks. We discovered today it isn't a quota problem when the switch example worked fine on an ESP32-S2. Sorry didn't try this before we cried wolf!

We tried restarting the iPhone but that did not fix the provisioning problem we see with our project app code as previously reported.

The problem seems associated with the ESP32.

E.g., we can provision the rainmaker switch example on the ESP-SAOLA-1_V1.2, both when built within the Rainmaker repo and when built copied outside the repo. But when we set-target to esp32 and attempt to provision the switch example on the ESP32-DevKitC_V4 we get the same error, repeated here for convenience ...

Error
Device could not be connected. Please try again

The associated serial log is attached

TIA - George