We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ebcaac commit 3474009Copy full SHA for 3474009
2 files changed
packages/tools/modbus_finder.py
@@ -1,12 +1,17 @@
1
#!/usr/bin/env python3
2
-import sys
3
import time
4
from typing import Callable
5
6
import pymodbus
7
from pymodbus.constants import Endian
8
9
-from modules.common import modbus
+import sys
+sys.path.append("/var/www/html/openWB/packages")
10
+
11
+try:
12
+ from modules.common import modbus
13
+except Exception as e:
14
+ print(e)
15
16
17
def try_read(function: Callable, **kwargs) -> str:
packages/tools/modbus_tester.py
@@ -1,7 +1,12 @@
host = sys.argv[1]
port = int(sys.argv[2])
0 commit comments