Skip to content

Can't connect to phone #2

@UchihaYuki

Description

@UchihaYuki

I use the exact same code on my esp32 and try to connect it from my smartphone (Xiaomi 12 Pro). Although it shows up under bluetooth devices, I can't connect to it.

Is there a way to see what happened?

PS:
There's an error in the code, this line

adv_data = bytearray('\x02\x01\x02') + bytearray((len(name) + 1, 0x09)) + name

should be turned into

adv_data = bytearray(b'\x02\x01\x02') + bytearray((len(name) + 1, 0x09)) + name

or you will get an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions