Skip to content

When including UARTService instance as an argument for ProvideServicesAdvertisement - .services doesn't return True #222

@unterhunde

Description

@unterhunde

When attempting to check for the service in central.py, if uart is listed in the advertisement of peripheral.py, the condition never seems to become true.

Peripheral.py
ad = ProvideServicesAdvertisement(hid, uart)

Central.py
if ad.complete_name == 'rhf_periph' and HIDService in ad.services:

Result: False

Peripheral.py
ad = ProvideServicesAdvertisement(uart)

Central.py
if ad.complete_name == 'rhf_periph' and UARTService in ad.services:

Result: False

Peripheral.py
ad = ProvideServicesAdvertisement(hid)

Central.py
if ad.complete_name == 'rhf_periph' and HIDService in ad.services:

Result: True

central.py

peripheral.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions