Skip to content
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

example: Rename brightness property to level #108

Closed
wants to merge 1 commit into from

Conversation

rzr
Copy link
Contributor

@rzr rzr commented Jul 10, 2019

Align properties to Virtual Dimmable Light
from VirtualThings adapter (same as arduino too)

This change was motivated by aframe-webthing project
that could use either this example or gateway.

Relate-to: rzr/aframe-webthing@60ea9f8
Change-Id: I22197c6b78c7e6f56f9485c4c028aa62a16d12f9
Signed-off-by: Philippe Coval p.coval@samsung.com

Align properties to  Virtual Dimmable Light
from VirtualThings adapter (same as arduino too)

This change was motivated by aframe-webthing project
that could use either this example or gateway.

Relate-to: rzr/aframe-webthing@60ea9f8
Change-Id: I22197c6b78c7e6f56f9485c4c028aa62a16d12f9
Signed-off-by: Philippe Coval <p.coval@samsung.com>
@mrstegeman
Copy link
Contributor

It was renamed to brightness to match the example in the spec: https://iot.mozilla.org/wot/#example-2-a-more-complex-thing-description-with-semantic-annotations

@rzr
Copy link
Contributor Author

rzr commented Jul 10, 2019

Ok then adapter and arduino code maybe updated too (if it is'nt done already, I didn't check yet).

seems not

function brightness() {
  return {
name: 'level',

@

https://github.com/mozilla-iot/virtual-things-adapter/blob/master/virtual-things-adapter.js#L126

https://github.com/mozilla-iot/webthing-arduino/blob/master/examples/RGBLamp/RGBLamp.ino#L38

So please confirm both should be patched too align

@rzr rzr closed this Jul 10, 2019
@mrstegeman mrstegeman added this to Done in WebThings Gateway Jul 10, 2019
rzr added a commit to TizenTeam/webthing-esp8266 that referenced this pull request Jul 11, 2019
Aligned to Spec:
https://iot.mozilla.org/wot/#example-2-a-more-complex-thing-description-with-semantic-annotations

Fixed minor build issues too.

Change-Id: I43b9fbc609a226ecb00729c32847670b8f91a5da
Relate-to: WebThingsIO/webthing-node#108
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to TizenTeam/virtual-things-adapter that referenced this pull request Jul 14, 2019
Change-Id: I09b81c0aaa6d5e26b6a6c30f731a5646217e5e67
Relate-to: WebThingsIO/webthing-node#108
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to TizenTeam/virtual-things-adapter that referenced this pull request Jul 14, 2019
According to:

https://iot.mozilla.org/wot/#example-2-a-more-complex-thing-description-with-semantic-annotations

For some reason, "brightness" name is preferred over "level" one.

Change-Id: I09b81c0aaa6d5e26b6a6c30f731a5646217e5e67
Relate-to: WebThingsIO/webthing-node#108
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to TizenTeam/virtual-things-adapter that referenced this pull request Jul 14, 2019
According to:

https://iot.mozilla.org/wot/#example-2-a-more-complex-thing-description-with-semantic-annotations

For some reason, "brightness" name is preferred over "level" one.

Change-Id: I09b81c0aaa6d5e26b6a6c30f731a5646217e5e67
Forwarded: WebThingsIO#35
Relate-to: WebThingsIO/webthing-node#108
Signed-off-by: Philippe Coval <p.coval@samsung.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants