Skip to content

Commit bf5bea4

Browse files
use port specific UART ID in RTU client example
1 parent db23ec2 commit bf5bea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rtu_client_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
# stop_bits=1, # optional, default 1
9191
# parity=None, # optional, default None
9292
# ctrl_pin=12, # optional, control DE/RE
93-
# uart_id=1 # optional, see port specific documentation
93+
uart_id=uart_id # optional, default 1, see port specific docs
9494
)
9595

9696
if IS_DOCKER_MICROPYTHON:

0 commit comments

Comments
 (0)