Skip to content

Add initialisation for existing serial port #22

@eblot

Description

@eblot

It would be great if BlueGigaAPI could be instanciated from an existing Serial instance:

class BlueGigaAPI(object):
    def __init__(self, port, callbacks=None, baud=115200, timeout=1):

This would give the opportunity to use serial.serial_for_url(), customize features (such as HW flow control with RTS/CTS), perform pre-initialisation communication, etc.

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