mirror of
https://github.com/thiagoralves/OpenPLC_v3.git
synced 2026-09-23 11:34:22 +08:00
[RTOP-26] Update webserver/webserver.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent
174c0b28ae
commit
d364456f24
@@ -32,8 +32,10 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
openplc_runtime = openplc.runtime()
|
||||
|
||||
CERT_FILE = "certOPENPLC.pem"
|
||||
KEY_FILE = "keyOPENPLC.pem"
|
||||
from pathlib import Path
|
||||
BASE_DIR = Path(__file__).parent
|
||||
CERT_FILE = (BASE_DIR / "certOPENPLC.pem").resolve()
|
||||
KEY_FILE = (BASE_DIR / "keyOPENPLC.pem").resolve()
|
||||
HOSTNAME = "localhost"
|
||||
|
||||
def restapi_callback_get(argument: str, data: dict) -> dict:
|
||||
|
||||
Reference in New Issue
Block a user