Skip to content

example: Rename brightness property to level#108

Closed
rzr wants to merge 1 commit intoWebThingsIO:masterfrom
TizenTeam:sandbox/rzr/review/master
Closed

example: Rename brightness property to level#108
rzr wants to merge 1 commit intoWebThingsIO:masterfrom
TizenTeam:sandbox/rzr/review/master

Conversation

@rzr
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants