I read https://iot.mozilla.org/wot/#property-resource.
The section includes an example of a successful PUT response for a property, however, I wonder what an unsuccessful response should look like.
In the case that the value is not changeable:
Should I return an HTTP 403, if the value is a read only value?
Should I return an HTTP 200 but the value stays the same? (how is it different from a slow value?)
And what if it takes my web thing a couple of seconds (or minutes) to change the value:
- If my web thing needs to talk to a couple of slow servers to change a property, should I return the response early with the unchanged value?
- Should a temperature control (or similar) implement temperature and target_temperature? The temperature surely won’t change quickly.