palto42 / komoot-navi

BLE Receiver for diplaying navigation info from Komoot app.
18 stars 3 forks source link

Problems connecting to the app even though the service gets detected #8

Open adam2809 opened 2 years ago

adam2809 commented 2 years ago

I am trying to install this project on my TTGO Lora32 V2 and my device seems to detect the BLE service (It displays the service uuid in the attached log file line 48, tries to connect in line 57) but always fails to connect to it without giving an error I tried using the BLE ESP32 Arduino library downloaded from both from pio in lib _deps and the version disccussed here https://github.com/palto42/komoot-navi/issues/2 that is this repo: https://github.com/palto42/ESP32_BLE_Arduino.git#testing. Does anybody have an idea what might be happening?

PS

I couldn't get the Serial.print to show up but logs worked fine so I am submitting a PR with Serial.println replaced with ESP_LOG which makes it a bit more readable

failed_connection_attempt.log

palto42 commented 2 years ago

Hi @adam2809 , thanks for your interest in my app. I haven't worked on it since 2 years anymore since it worked for me and I finally rarely used it. I have re-compiled it with latest VScode, PlatformIO and libraries and confirm that I see the same issues on a device which worked with old build. So it's most likely not a hardware issue but something changed on the libraries or ESP platform.

Not sure if I will have time for troubleshooting in the near future, but happy to try and suggestions or PR from you.

I tested your PR in new branch esp_log and looks good.

adam2809 commented 2 years ago

I'll give it a look but also I'm considering rewriting this in esp-idf since it tends to be more reliable in my experience. Also would you mind adding a hacktoberfest-accepted label on my PR? I'm looking to get a free t-shirt : )