Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -40,7 +40,7 @@ const factoring = async (topic, message) => { | ... | @@ -40,7 +40,7 @@ const factoring = async (topic, message) => { |
40 | } | 40 | } |
41 | 41 | ||
42 | const balanceFactoring = (balance) => { | 42 | const balanceFactoring = (balance) => { |
43 | - const max = 11; | 43 | + const max = 10; //Digital Lead Sensor Maximum Value |
44 | const slicingBalance = max / 5; | 44 | const slicingBalance = max / 5; |
45 | 45 | ||
46 | if(parseInt(balance) < slicingBalance || parseInt(balance) > max * 2) | 46 | if(parseInt(balance) < slicingBalance || parseInt(balance) > max * 2) | ... | ... |
... | @@ -13,7 +13,7 @@ exports.mqttOn = async (hosting, func) => { | ... | @@ -13,7 +13,7 @@ exports.mqttOn = async (hosting, func) => { |
13 | clientList.push(client); | 13 | clientList.push(client); |
14 | 14 | ||
15 | client.on('connect', () => { | 15 | client.on('connect', () => { |
16 | - console.log('Client connected: ', client.connected); | 16 | + console.log(`Hub connected: `, client.connected); |
17 | }); | 17 | }); |
18 | 18 | ||
19 | client.on('message', async (topic, message, packet) => { | 19 | client.on('message', async (topic, message, packet) => { | ... | ... |
-
Please register or login to post a comment