fbiego / ESP32_BLE_OTA_Android

Android app to perform OTA update on ESP32 via BLE
MIT License
70 stars 26 forks source link

app not connecting #5

Open dgm3333 opened 2 years ago

dgm3333 commented 2 years ago

I can't get the android app to connect. I've tested on phones is running Android 8 and Android 11 with same (failed) results

I've built and installed the android app using android studio and it uploads/run on both devices without any reported errors. I tried initially without linking any additional libraries since another closed issue implied this is no longer required. Because this failed I tried linking to fbiego/Android_BLE_Library, but this states the module already exists (not a suprise and your readme.md needs to be updated to reflect that this isn't required any more). I also tried to linked to a clone of https://github.com/NordicSemiconductor/Android-BLE-Library but this doesn't do anything either (although I didn't change any code for this attempt).

In another issue you've stated you've essentially cloned https://github.com/NordicSemiconductor/Android-BLE-Library However the readme for this specifically states "The library does not provide support for scanning for Bluetooth LE devices. For scanning, we recommend using Android Scanner Compat Library which brings almost all recent features, introduced in Lollipop and later, to the older platforms." and recommends using https://github.com/NordicSemiconductor/Android-Scanner-Compat-Library I did trying linking this repo but it doesn't help either (although again without any changes to code).

Incidentally the arduino sketch doesn't appear to be the issue: I've installed the nimBLE arduino sketch - that's working fine. The same is true if I use the ESP32 OTA ardunio sketch. Both correctly connect to the "nRF Connect" android app and report the GATT Service Generic Access and Generic Attributes as well as the custom device SERVICE_UUID = fb1e... If I put Serial.prints in the sketches the ESP32 is appropriately reporting a connection with nRF.

fbiego commented 2 years ago

Check the play store version of the app

https://play.google.com/store/apps/details?id=com.fbiego.esp32.ota

phigjm commented 2 years ago

Are you planning to make the changes for the Playstore open source as well or to update this Repository?

FilipeFaria90 commented 2 years ago

I have the play store version and it's not working at all. It just crashes when connecting. For the ino part, I'm using your GitHub ino, so I don't understand why it does not work. https://github.com/fbiego/ESP32_BLE_OTA_Arduino

I tried with another ino that I can connect with another app and your APP crashes as well.