venv added, updated
This commit is contained in:
20
myenv/lib/python3.12/site-packages/pymodbus/framer/tls.py
Normal file
20
myenv/lib/python3.12/site-packages/pymodbus/framer/tls.py
Normal 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
|
||||
Reference in New Issue
Block a user