Skip to content

Commit

Permalink
feat!: Change the default OPC UA port to 48401
Browse files Browse the repository at this point in the history
which is the port of the robot control of the voraus core.
  • Loading branch information
philipp-caspers committed Oct 7, 2024
1 parent 04625f3 commit 8a6c163
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() -> Result<(), RclrsError> {
let ros_node_copy_spin = Arc::clone(&ros_node);
let ros_node_copy_service = Arc::clone(&ros_node);

let opc_ua_client = Arc::new(Mutex::new(OPCUAClient::new("opc.tcp://127.0.0.1:4855")));
let opc_ua_client = Arc::new(Mutex::new(OPCUAClient::new("opc.tcp://127.0.0.1:48401")));
let Ok(_connection_result) = opc_ua_client.lock().unwrap().connect() else {
panic!("Connection could not be established, but is required.");
};
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/clock.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pki_dir: ./pki
tcp_config:
hello_timeout: 5
host: 127.0.0.1
port: 4855
port: 48401
limits:
clients_can_modify_address_space: false
max_subscriptions: 100
Expand All @@ -35,7 +35,7 @@ user_tokens:
user: unused
pass: unused1
discovery_urls:
- opc.tcp://127.0.0.1:4855/
- opc.tcp://127.0.0.1:48401/
default_endpoint: null
endpoints:
none:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_helper_opc_ua_publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async fn test_simple_server_binds_port() {
// Start the server in the background
helpers::opc_ua_publisher_single_linear::run_rapid_clock().await;

let expected_server_port = 4855;
let expected_server_port = 48401;
let res = wait_for_function_to_pass(|| is_port_bound(expected_server_port), 5000);

match res {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_simple_opc_ua_subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async fn test_simple_subscriber_receives_data_changes() {
// Start the server in the background
helpers::opc_ua_publisher_single_linear::run_rapid_clock().await;

let expected_server_port = 4855;
let expected_server_port = 48401;
wait_for_function_to_pass(|| is_port_bound(expected_server_port), 5000)
.expect("Port was not bound within 5 seconds.");

Expand Down

0 comments on commit 8a6c163

Please sign in to comment.