bgapi icon indicating copy to clipboard operation
bgapi copied to clipboard

Add initialisation for existing serial port

Open eblot opened this issue 8 years ago • 0 comments

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.

eblot avatar Oct 21 '16 13:10 eblot