Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

PacketHandlerThread should have an option to disable warn_unhandled #8

@cboulay

Description

@cboulay

In situations where your device is sending data in multiple modalities (to Central for recording) but your pycbsdk is only interested in some of that data, currently we get lots of warnings about unhandled packets.

A current solution is to register a do-nothing callback for that packet type.

However, it would be nice if the PacketHandlerThread simply had an option to not warn about unhandled packets.

e.g., in the following:

elif b_debug_unknown:

We could simply make that

elif b_debug_unknown and self._b_warn_unhandled:

where _b_warn_unhandled is set during thread initialization. This is set on device connection and cannot be modified while running.

Metadata

Metadata

Assignees

No one assigned

    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