Skip to content

Commit

Permalink
feat(api): add firmware update support to Plate Reader + fix connect/…
Browse files Browse the repository at this point in the history
…disconnect issues. (#15890)
  • Loading branch information
vegano1 authored Aug 9, 2024
1 parent fb937d8 commit 5e839c7
Show file tree
Hide file tree
Showing 21 changed files with 622 additions and 269 deletions.
18 changes: 17 additions & 1 deletion api/src/opentrons/drivers/absorbance_reader/abstract.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from abc import ABC, abstractmethod
from typing import Dict, List
from typing import Dict, List, Tuple
from opentrons.drivers.types import (
AbsorbanceReaderLidStatus,
AbsorbanceReaderDeviceState,
AbsorbanceReaderPlatePresence,
)


Expand Down Expand Up @@ -46,3 +47,18 @@ async def get_status(self) -> AbsorbanceReaderDeviceState:
async def get_device_info(self) -> Dict[str, str]:
"""Get device info"""
...

@abstractmethod
async def get_uptime(self) -> int:
"""Get device uptime"""
...

@abstractmethod
async def get_plate_presence(self) -> AbsorbanceReaderPlatePresence:
"""Check if there is a plate in the reader."""
...

@abstractmethod
async def update_firmware(self, firmware_file_path: str) -> Tuple[bool, str]:
"""Updates the firmware on the device."""
...
Loading

0 comments on commit 5e839c7

Please sign in to comment.