-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed links in forms #1
Conversation
There was a problem hiding this 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.
@@ -461,7 +461,7 @@ class ThingEventObject { | |||
break; | |||
} | |||
|
|||
data["timestamp"] = timestamp; | |||
//data["timestamp"] = timestamp; |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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']
@@ -308,7 +308,7 @@ class WebThingAdapter { | |||
handleError(); | |||
} | |||
return; | |||
} else if (uri == deviceBase + "/properties") { | |||
} /*else if (uri == deviceBase + "/properties") { |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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']
.
Using #2 instead of this one. |
No description provided.