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