Skip to content

Commit

Permalink
Fix websocket url
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Dec 4, 2023
1 parent 974b4fe commit 49a0aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raspberry_pi/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ std::string get_websocket_url()
std::optional<int> maybe_port = GET_CONFIG_VALUE(port);
if (maybe_port.has_value())
{
return "ws://" + GET_CONFIG_VALUE(host) + ":" + std::to_string(maybe_port.value()) + "/room/" + GET_CONFIG_VALUE(code);
return "ws://" + GET_CONFIG_VALUE(host) + ":" + std::to_string(maybe_port.value()) + "/room?room_name=" + GET_CONFIG_VALUE(code);
}
return "ws://" + GET_CONFIG_VALUE(host) + "/room/" + GET_CONFIG_VALUE(code);
}
Expand All @@ -47,7 +47,7 @@ int main()
{
// spdlog::set_level(spdlog::level::off);
std::string websocket_url = get_websocket_url();
spdlog::info("Connecting to {}", websocket_url);
spdlog::info("Got websocket url: {}", websocket_url);

std::unique_ptr<LidarDummy> dummy_scanner = std::make_unique<LidarDummy>();
// std::unique_ptr<LidarScanner> scanner = std::make_unique<LidarScanner>("COM3");
Expand Down

0 comments on commit 49a0aed

Please sign in to comment.