MCPcopy Create free account
hub / github.com/WebThingsIO/webthing-node / close

Method close

example/platform/gpio/gpio-property.js:92–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91
92 close() {
93 try {
94 this.port && this.port.unexport(this.config.pin);
95 } catch (err) {
96 console.error(`error: GPIO: ${this.getName()} close:${err}`);
97 return err;
98 }
99 log(`log: GPIO: ${this.getName()}: close:`);
100 }
101}
102
103function GpioProperty(thing, name, value, metadata, config) {

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected