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

Method setProperty

lib/thing.ts:385–392  ·  view source on GitHub ↗

* Set a property value. * * @param {String} propertyName Name of the property to set * @param {*} value Value to set

(propertyName: string, value: any)

Source from the content-addressed store, hash-verified

383 * @param {*} value Value to set
384 */
385 setProperty(propertyName: string, value: any): void {
386 const prop = this.findProperty(propertyName);
387 if (!prop) {
388 return;
389 }
390
391 prop.setValue(value);
392 }
393
394 /**
395 * Get an action.

Callers 4

performActionMethod · 0.80
performActionMethod · 0.80
wsMethod · 0.80
putMethod · 0.80

Calls 2

findPropertyMethod · 0.95
setValueMethod · 0.80

Tested by

no test coverage detected