MCPcopy Index your code
hub / github.com/WebThingsIO/webthing-node / performAction

Method performAction

example/multiple-things.js:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 performAction() {
27 return new Promise((resolve) => {
28 setTimeout(() => {
29 this.thing.setProperty('brightness', this.input.brightness);
30 this.thing.addEvent(new OverheatedEvent(this.thing, 102));
31 resolve();
32 }, this.input.duration);
33 });
34 }
35}
36
37/**

Callers

nothing calls this directly

Calls 2

setPropertyMethod · 0.80
addEventMethod · 0.80

Tested by

no test coverage detected