removed stupid message
This commit is contained in:
Родитель
86bdc6ed33
Коммит
646b1af39d
|
@ -26,7 +26,7 @@ function monitorDoor(){
|
|||
console.log("-----in monitor door-----");
|
||||
readTag('motion', function(data){
|
||||
console.log("data form motion sensor is", data);
|
||||
if (data === 1){
|
||||
if (data === "1"){
|
||||
console.log("got something at the door");
|
||||
readTag('cam', function(data){
|
||||
console.log("camera gives me this data--", data);
|
||||
|
|
|
@ -72,11 +72,11 @@ function readProximityState(pin, res) {
|
|||
console.log("on pin" + pin + " state is: " , value); // The current state of the pin
|
||||
var state = value;
|
||||
if (res !== undefined) {
|
||||
console.log("send a response with led state: ", value);
|
||||
console.log("send a response with proximity state: ", value);
|
||||
if (state == 1) {
|
||||
res.send("something's there ^_^");
|
||||
res.send("1");
|
||||
} else {
|
||||
res.send("nothing detected");
|
||||
res.send("0");
|
||||
}
|
||||
}
|
||||
return state;
|
||||
|
|
Загрузка…
Ссылка в новой задаче