@george.talusan/eufy-robovac-js 0.0.6 → 0.0.7

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/lib/RoboVac.js +0 -11
  2. package/package.json +1 -2
package/lib/RoboVac.js CHANGED
@@ -1,4 +1,3 @@
1
- const ping = require('net-ping').createSession({ retries: 10 });
2
1
  const debug = require('debug');
3
2
  const api = require('tuyapi');
4
3
  const { EventEmitter } = require('events');
@@ -70,17 +69,7 @@ class RoboVac extends EventEmitter
70
69
  this.connected = false;
71
70
  }
72
71
 
73
- ping() {
74
- ping.pingHost(this.ip, (error, target) => {
75
- if (error) {
76
- debug(`${target}: ${error.toString()}`);
77
- }
78
- });
79
- }
80
-
81
72
  async initialize() {
82
- this.ping();
83
-
84
73
  this.device = new api({
85
74
  id: this.deviceId,
86
75
  key: this.localKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@george.talusan/eufy-robovac-js",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -10,7 +10,6 @@
10
10
  "main": "./lib/RoboVac.js",
11
11
  "dependencies": {
12
12
  "debug": "^4.3.5",
13
- "net-ping": "^1.2.4",
14
13
  "tuyapi": "github:codetheweb/tuyapi"
15
14
  },
16
15
  "directories": {