Initial commit
This commit is contained in:
14
backend/models.py
Normal file
14
backend/models.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from pydantic import BaseModel
|
||||
from asyncua import ua
|
||||
from typing import Any
|
||||
|
||||
class SemiAutoControl(BaseModel):
|
||||
string: int
|
||||
module: int
|
||||
unit: int
|
||||
enable: bool
|
||||
|
||||
class WriteNodeCommand(BaseModel):
|
||||
nodeId: str
|
||||
nodeValue: Any
|
||||
nodeType: ua.VariantType
|
||||
Reference in New Issue
Block a user