diff --git a/docs/en/index.html b/docs/en/index.html new file mode 100644 index 0000000..47c6ebf --- /dev/null +++ b/docs/en/index.html @@ -0,0 +1,212 @@ + + + + + + + + + wIoT | 轻松物联 + + + + + + + + +
+
+ + +
+
+ +
+ +
+
+ +
+ + +
+

上一篇: + +

+

下一篇: + +

+
+ + + + +
+
+
+ + +
+
+
+ +
+ + + + + + + + +
+
+

您的浏览器版本过低,不支持浏览本Wiki,请升级或更换您的浏览器再试!

+ +
+ + + \ No newline at end of file diff --git a/src/node/README.md b/src/node/README.md index c4b1b3e..39eddaa 100644 --- a/src/node/README.md +++ b/src/node/README.md @@ -209,7 +209,9 @@ wiot.register.set(pir.getStatus, wiot.HIGH, ()=>{ }); //注册一条规则,当人离开时,myLED灭 -wiot.register.set(wiot.LOW, pir.getStatus, ()=>{ +wiot.register.set(()=>{ + return (wiot.LOW == pir.getStatus); +}, ()=>{ myLED.clear(); }); ```