def list(self):
<EOL>queue = self._pebble.get_endpoint_queue(DataLogging)<EOL>self._pebble.send_packet(DataLogging(data=DataLoggingReportOpenSessions(sessions=[])))<EOL>sessions = []<EOL>while True:<EOL><INDENT>try:<EOL><INDENT>result = queue.get(timeout=<NUM_LIT:2>).data<EOL><DEDENT>except TimeoutError:<EOL><INDENT>break<EOL><DEDENT>if isinstance(result, DataLoggingDespoolOpenSession):<EOL><INDENT>self._pebble.send_packet(DataLogging(data=DataLoggingACK(<EOL>session_id=result.session_id)))<EOL>sessions.append(result.__dict__)<EOL><DEDENT><DEDENT>queue.close()<EOL>return sessions<EOL>
List all available data logging sessions