Skip to content

Can't connect to ESP32 BLE via Service UUID #3397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mrdc opened this issue Oct 22, 2019 · 9 comments
Closed

Can't connect to ESP32 BLE via Service UUID #3397

mrdc opened this issue Oct 22, 2019 · 9 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@mrdc
Copy link

mrdc commented Oct 22, 2019

Hello,

I'm trying to connect to ESP32-Wroom from my iOS app via BLE using Service UUID, but I get an error that no device is connected. I can connect via BLE DeviceName or via DeviceUUID.

Hardware:

Board: ESP32 DevKit (38pin) (ESP32D0WDQ6 (revision 1))
Core Installation/update date: ESP32 by Espressif v1.0.4
IDE name: Arduino IDE
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 921600
Computer OS: Win

Code was here
@chegewara
Copy link
Contributor

This looks like issue with iPhone app.

@lyusupov
Copy link
Contributor

lyusupov commented Oct 26, 2019

@chegewara

Shouldn't that:

  pAdvertising->setMinPreferred(0x06);  // functions that help with iPhone connections issue
  pAdvertising->setMinPreferred(0x12);

be actually coded like this:

  pAdvertising->setMinPreferred(0x06);  // functions that help with iPhone connections issue
  pAdvertising->setMaxPreferred(0x12);

?

@mrdc
Copy link
Author

mrdc commented Oct 26, 2019

be actually coded like this:

Probably yes, I've taken this code (marked as working) from one of issues.

@chegewara
Copy link
Contributor

@chegewara

Shouldn't that:

  pAdvertising->setMinPreferred(0x06);  // functions that help with iPhone connections issue
  pAdvertising->setMinPreferred(0x12);

be actually coded like this:

  pAdvertising->setMinPreferred(0x06);  // functions that help with iPhone connections issue
  pAdvertising->setMaxPreferred(0x12);

?

Yes, its typo.

@mrdc
Copy link
Author

mrdc commented Oct 26, 2019

Makes no difference - iOS app can still connect via DeviceName but via Service UUID.

@chegewara
Copy link
Contributor

Check service UUID, maybe you have typo in iOS app.

@mrdc
Copy link
Author

mrdc commented Oct 27, 2019

I've checked - it's copy paste from ESP32 sources...

@stale
Copy link

stale bot commented Jan 8, 2020

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Jan 8, 2020
@stale
Copy link

stale bot commented Jan 22, 2020

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

3 participants