Updated to new LabThings structure

This commit is contained in:
Joel Collins 2020-09-04 15:48:52 +01:00
parent 304e620143
commit 5139b24ffe
14 changed files with 99 additions and 274 deletions

View file

@ -129,7 +129,7 @@ class CaptureObject(object):
# Store a nice ID
self.id = uuid.uuid4() #: str: Unique capture ID
logging.debug("Created StreamObject {}".format(self.id))
logging.debug("Created CaptureObject {}".format(self.id))
self.datetime = datetime.datetime.now()
# Create file name. Default to UUID
@ -151,6 +151,7 @@ class CaptureObject(object):
self.thumb_bytes = None
def write(self, s):
logging.debug(f"Writing to {self}")
self.stream.write(s)
def flush(self):