Files
opcua_fastapi_backend/models.py
2025-11-08 13:56:28 +01:00

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