Skip to content

Commit 08106d6

Browse files
authored
Clean timeout as float. (#1152)
1 parent d8c9cae commit 08106d6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

examples/server_async.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def run_async_server(args):
152152
allow_reuse_address=True, # allow the reuse of an address
153153
# ignore_missing_slaves=True, # ignore request to a missing slave
154154
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
155-
# TBD timeout=1, # waiting time for request to complete
155+
# timeout=1, # waiting time for request to complete
156156
# TBD strict=True, # use strict timing, t1.5 for Modbus RTU
157157
# defer_start=False, # Only define server do not activate
158158
)
@@ -168,7 +168,7 @@ async def run_async_server(args):
168168
# TBD allow_reuse_address=True, # allow the reuse of an address
169169
# ignore_missing_slaves=True, # ignore request to a missing slave
170170
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
171-
# TBD timeout=1, # waiting time for request to complete
171+
# timeout=1, # waiting time for request to complete
172172
# TBD strict=True, # use strict timing, t1.5 for Modbus RTU
173173
# defer_start=False, # Only define server do not activate
174174
)
@@ -178,7 +178,7 @@ async def run_async_server(args):
178178
server = await StartAsyncSerialServer(
179179
context=args.context, # Data storage
180180
identity=args.identity, # server identify
181-
# timeout=0.005, # waiting time for request to complete
181+
# timeout=1, # waiting time for request to complete
182182
port=args.port, # serial port
183183
# custom_functions=[], # allow custom handling
184184
framer=args.framer, # The framer strategy to use
@@ -219,7 +219,7 @@ async def run_async_server(args):
219219
# reqclicert=False, # Force the sever request client"s certificate
220220
# ignore_missing_slaves=True, # ignore request to a missing slave
221221
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
222-
# TBD timeout=1, # waiting time for request to complete
222+
# timeout=1, # waiting time for request to complete
223223
# TBD strict=True, # use strict timing, t1.5 for Modbus RTU
224224
defer_start=False, # Only define server do not activate
225225
)

examples/server_sync.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def run_sync_server(args):
6969
allow_reuse_address=True, # allow the reuse of an address
7070
# ignore_missing_slaves=True, # ignore request to a missing slave
7171
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
72-
# TBD timeout=1, # waiting time for request to complete
72+
# timeout=1, # waiting time for request to complete
7373
# TBD strict=True, # use strict timing, t1.5 for Modbus RTU
7474
# defer_start=False, # Only define server do not activate
7575
)
@@ -87,7 +87,7 @@ def run_sync_server(args):
8787
# TBD allow_reuse_address=True, # allow the reuse of an address
8888
# ignore_missing_slaves=True, # ignore request to a missing slave
8989
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
90-
# TBD timeout=1, # waiting time for request to complete
90+
# timeout=1, # waiting time for request to complete
9191
# TBD strict=True, # use strict timing, t1.5 for Modbus RTU
9292
# defer_start=False, # Only define server do not activate
9393
)
@@ -97,7 +97,7 @@ def run_sync_server(args):
9797
server = StartSerialServer(
9898
context=args.context, # Data storage
9999
identity=args.identity, # server identify
100-
# timeout=0.005, # waiting time for request to complete
100+
# timeout=1, # waiting time for request to complete
101101
port=args.port, # serial port
102102
# custom_functions=[], # allow custom handling
103103
framer=args.framer, # The framer strategy to use
@@ -138,7 +138,7 @@ def run_sync_server(args):
138138
# reqclicert=False, # Force the sever request client"s certificate
139139
# ignore_missing_slaves=True, # ignore request to a missing slave
140140
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
141-
# TBD timeout=1, # waiting time for request to complete
141+
# timeout=1, # waiting time for request to complete
142142
# TBD strict=True, # use strict timing, t1.5 for Modbus RTU
143143
# defer_start=False, # Only define server do not activate
144144
)

0 commit comments

Comments
 (0)