Skip to content

Conversation

@trivo78
Copy link

@trivo78 trivo78 commented Jul 28, 2021

No description provided.

Copy link
Owner

@relu91 relu91 left a comment

Choose a reason for hiding this comment

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

I think it might be sufficient to make it work with a generic wot consumer. I left some small changes below, after that, I think we can move to the main repo.

As a general comment: either we delete or leave lines, no commented code, please.

}

data["timestamp"] = timestamp;
//data["timestamp"] = timestamp;
Copy link
Owner

Choose a reason for hiding this comment

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

I think we can leave this, at least I don't see any immediate problems with having it.

{
JsonObject links_prop = links.createNestedObject();
links_prop["rel"] = "properties";
links_prop["href"] = "/things/" + this->id + "/properties";
Copy link
Owner

Choose a reason for hiding this comment

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

We can already be described in the TD the /properties please leave it and add as op member ['readallproperties', 'writeallproperties']

}
return;
} else if (uri == deviceBase + "/properties") {
} /*else if (uri == deviceBase + "/properties") {
Copy link
Owner

Choose a reason for hiding this comment

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

See comment above

descr["id"] = this->id;
descr["title"] = this->title;
descr["@context"] = "https://webthings.io/schemas";
descr["@context"] = " https://www.w3.org/2019/wot/td/v1";
Copy link
Owner

@relu91 relu91 Aug 7, 2021

Choose a reason for hiding this comment

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

The correct value should be: ['https://www.w3.org./2019/wot/td/v1','https://webthings.io/schemas'].

@Citrullin Citrullin mentioned this pull request Aug 15, 2021
@relu91
Copy link
Owner

relu91 commented Aug 18, 2021

Using #2 instead of this one.

@relu91 relu91 closed this Aug 18, 2021
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