()
| 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 | |
| 76 | function AdcProperty(thing, name, value, metadata, config) { |