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

Method set

lib/value.ts:42–48  ·  view source on GitHub ↗

* Set a new value for this thing. * * @param {*} value Value to set

(value: ValueType)

Source from the content-addressed store, hash-verified

40 * @param {*} value Value to set
41 */
42 set(value: ValueType): void {
43 if (this.valueForwarder) {
44 this.valueForwarder(value);
45 }
46
47 this.notifyOfExternalUpdate(value);
48 }
49
50 /**
51 * Return the last known value from the underlying thing.

Callers 2

constructorMethod · 0.80
setValueMethod · 0.80

Calls 1

Tested by

no test coverage detected