feat: add API endpoint to get devices list
This commit is contained in:
parent
0cb5706ed7
commit
f4b7daabd3
9 changed files with 66 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from .uplink_event import UplinkEvent
|
||||
from .consumption_point import ConsumptionPoint, ConsumptionResponse
|
||||
from .device import Device
|
||||
|
||||
__all__ = ["UplinkEvent", "ConsumptionPoint", "ConsumptionResponse"]
|
||||
__all__ = ["UplinkEvent", "ConsumptionPoint", "ConsumptionResponse", "Device"]
|
||||
6
server/backend/domain/entities/device.py
Normal file
6
server/backend/domain/entities/device.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
@dataclass
|
||||
class Device:
|
||||
device_id: int
|
||||
device_eui: str
|
||||
Loading…
Add table
Add a link
Reference in a new issue