iotcat 2 years ago
parent e7e5302662
commit be9709dffb
  1. 1
      .gitignore
  2. 2
      .wiot/.gitignore
  3. 1
      .wiot/__hash
  4. 18
      config.json
  5. 17
      index.js
  6. 2791
      package-lock.json
  7. 23
      package.json

1
.gitignore vendored

@ -102,3 +102,4 @@ dist
# TernJS port file
.tern-port
.wiot/compiled_files/

2
.wiot/.gitignore vendored

@ -0,0 +1,2 @@
cache/
compiled_files/

@ -0,0 +1 @@
9cb51e13705e00d67104db7ee787f57f9293f31b9a2f4e02e3e9677d4e4152f9

@ -0,0 +1,18 @@
{
"name": "wanjia-autosys",
"entrance": "index.js",
"director": "https://wiot-director.yimian.xyz/",
"nodes": {
"48c50": {
"nickname": "n0",
"msgport": 6789,
"wifiIndex": 0
}
},
"wifi": [
{
"ssid": "FCF4",
"pwd": "12345678"
}
]
}

@ -0,0 +1,17 @@
const wiot = require('wiot');
let node1 = new wiot.node.nodemcu('48c50');
let wire1 = new wiot.wire();
//let wire2 = new wiot.wire(); //Initizlize as 15
//when D3 is LOW/HIGH, set D4 to be LOW/HIGH
wiot.gpio(node1, wiot.INPUT, node1.D5, wire1);
wiot.gpio(node1, wiot.OUTPUT, node1.D6, wire1);
//wiot.buffer(node1, wire2, wire1, 3);

2791
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,23 @@
{
"name": "wanjia-autosys",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"wiot": "^0.4.1"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/IoTcat/wanjia-autosys.git"
},
"author": "iotcat",
"license": "MIT",
"bugs": {
"url": "https://github.com/IoTcat/wanjia-autosys/issues"
},
"homepage": "https://github.com/IoTcat/wanjia-autosys#readme"
}
Loading…
Cancel
Save