Browse Source

Signed-off-by: caner <5658514@qq.com>

caner 3 years ago
parent
commit
00f2265532
3 changed files with 2 additions and 1 deletions
  1. 1 1
      index.js
  2. 0 0
      lib/Pwm.js
  3. 1 0
      package.json

+ 1 - 1
index.js

@@ -1,7 +1,7 @@
 
 
 // wrt + socket + contrl
 // wrt + socket + contrl
 const io = require("socket.io-client")
 const io = require("socket.io-client")
-const PWM = require('./Pwm')
+const PWM = require('./lib/Pwm')
 const { PeerConnection, Video, RtcpReceivingSession } = require('node-datachannel');
 const { PeerConnection, Video, RtcpReceivingSession } = require('node-datachannel');
 const { createSocket } = require('dgram')
 const { createSocket } = require('dgram')
 const { spawn } = require('child_process')
 const { spawn } = require('child_process')

+ 0 - 0
Pwm.js → lib/Pwm.js


+ 1 - 0
package.json

@@ -9,6 +9,7 @@
   "author": "",
   "author": "",
   "license": "ISC",
   "license": "ISC",
   "dependencies": {
   "dependencies": {
+    "node-datachannel": "^0.3.4",
     "socket.io-client": "^4.4.1",
     "socket.io-client": "^4.4.1",
     "i2c-bus": "^5.2.2",
     "i2c-bus": "^5.2.2",
     "pca9685": "^5.0.0",
     "pca9685": "^5.0.0",