venv added, updated

This commit is contained in:
Norbert
2024-09-13 09:46:28 +02:00
parent 577596d9f3
commit 82af8c809a
4812 changed files with 640223 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
"""Modbus TLS frame implementation."""
from __future__ import annotations
from pymodbus.framer.base import FramerBase
class FramerTLS(FramerBase):
"""Modbus TLS frame type.
[ Function Code] [ Data ]
1b Nb
"""
def decode(self, data: bytes) -> tuple[int, int, int, bytes]:
"""Decode ADU."""
return len(data), 0, 0, data
def encode(self, pdu: bytes, _device_id: int, _tid: int) -> bytes:
"""Encode ADU."""
return pdu