homebridge-lockstate 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  var Service,Characteristic,Homebridge,recv_Value,Log
2
2
  recv_Value=0;
3
- const request = require('request')
4
3
  const packageJson = require('./package.json')
5
4
  const Net = require('net')
6
5
 
@@ -120,6 +119,10 @@ function lockstate(log, config) {
120
119
  }
121
120
 
122
121
  }
122
+ else {
123
+ arr = [0];
124
+ this.socket.write(new Uint8Array(arr));
125
+ }
123
126
  });
124
127
 
125
128
  this.socket.on('close', (error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-lockstate",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "lock",
5
5
  "main": "index.js",
6
6
  "keywords": [