Skip to content

Mistake about compare two Bluetooth.UUID() instance. #15136

Answered by Walkline80
Walkline80 asked this question in ESP32
Discussion options

You must be logged in to vote

Update:

DESCRIPTORS_UUID = [
    UUID(0x2900), UUID(0x2901), UUID(0x2902), UUID(0x2903), UUID(0x2904),
    UUID(0x2905), UUID(0x2906), UUID(0x2907), UUID(0x2908), UUID(0x2909),
    UUID(0x290a), UUID(0x290b), UUID(0x290c), UUID(0x290d), UUID(0x290e),
    UUID(0x2910), UUID(0x2911)
]

if uuid in DESCRIPTORS_UUID:
    pass

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@Walkline80
Comment options

@redhead-p
Comment options

@Walkline80
Comment options

@redhead-p
Comment options

@Walkline80
Comment options

Comment options

You must be logged in to vote
1 reply
@Walkline80
Comment options

Answer selected by Walkline80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants