15 lines
275 B
Python
15 lines
275 B
Python
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
|