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

Method close

example/platform/adc/adc-property.js:64–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 close() {
65 try {
66 this.inverval && clearInterval(this.inverval);
67 this.port && this.port.closeSync();
68 } catch (err) {
69 console.error(`error: ADC: ${this.getName()} close:${err}`);
70 return err;
71 }
72 log(`log: ADC: ${this.getName()}: close:`);
73 }
74}
75
76function AdcProperty(thing, name, value, metadata, config) {

Callers

nothing calls this directly

Calls 2

closeSyncMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected