def flush(self):
        with self:
            data = self._command('flush')

            if 'reads' in data:
                self._buffer.extend(data['reads'])
Clear buffer and flush server
dataset/ETHPy150Open geky/pyDAPLink/pyDAPLink/client/transport.py/DAPLinkClientTransport.flush