Skip to content

start_scan(): if no Advertisements are given, nothing is returned. #75

Closed
@dhalbert

Description

@dhalbert

This recent changed to the code in start_scan():

            # Double check the adv_type is requested. We may return Advertisement accidentally
            # otherwise.
            if adv_type not in advertisement_types:
                continue

means that if no advertisement_types are given, no advertisements at all will be returned by start_scan(), so it appears as if nothing is advertising. Previously, all received advertisements would be returned as Advertisement objects.

@tannewt I thought I understand your change in #72, but now I realize I didn't.

I think advertisement_types should be set to (Advertisement,) if it comes in as empty.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions