Skip to content

Commit

Permalink
sensor variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiljainjain committed Oct 16, 2019
1 parent ed24a45 commit 09e425b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ let path = require('path');
let cookieParser = require('cookie-parser');
let logger = require('morgan');

const sensor = require("node-dht-sensor");
const P2pServer = require('./p2p-server');
const Blockchain = require('../blockchain');
const Feedback = require("./Feedback");
Expand Down Expand Up @@ -94,6 +95,7 @@ setInterval(()=> {
fb.data.dht.humidity = humidity;
}
});
p2pServer.broadcastFeedback(fb.data);
}
const nwBlock = bc.addBlock(fb.data);
console.log(`New block added ${nwBlock.toString()}`);
Expand Down

0 comments on commit 09e425b

Please sign in to comment.