Skip to content

[ATASK-809] Endpoints for timeserver set - #81

Open
bwalawender-nomagic wants to merge 1 commit into
masterfrom
ATASK-809-set-timeserver-endpoints
Open

[ATASK-809] Endpoints for timeserver set#81
bwalawender-nomagic wants to merge 1 commit into
masterfrom
ATASK-809-set-timeserver-endpoints

Conversation

@bwalawender-nomagic

Copy link
Copy Markdown

No description provided.

Comment thread src/v2_0/rw/ctrl.cpp

void setTimeserver(RWSClient& client, std::string const& time_server_ip)
{
std::stringstream uri;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to use stringstream here? and not just have:

const std::string uri = Services::CTRL + "/clock/timeserver";

const std::string content = "server-ip=" + time_server_ip;

const std::string content_type = "application/x-www-form-urlencoded;v=2.0";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants