Skip to content

Commit

Permalink
pymodbus.simulator fixes (#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
chkr-private authored Mar 29, 2023
1 parent c77e858 commit f815003
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymodbus/server/simulator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"""
import argparse
import asyncio
import os

from pymodbus import pymodbus_apply_logging_config
from pymodbus.logging import Log
Expand All @@ -66,12 +67,12 @@ def get_commandline():
"--http_host",
help="use <http_host> as host to bind http listen",
type=str,
default=8081,
)
parser.add_argument(
"--http_port",
help="use <http_port> as port to bind http listen",
type=str,
default=8081,
)
parser.add_argument(
"--log",
Expand All @@ -84,7 +85,7 @@ def get_commandline():
"--json_file",
help='name of json file, default is "setup.json"',
type=str,
default="./pymodbus/server/simulator/setup.json",
default=os.path.join(os.path.dirname(__file__), "setup.json"),
)
parser.add_argument(
"--log_file",
Expand Down

0 comments on commit f815003

Please sign in to comment.