Commit 2d9742e4 by zCaesar

device usage fix1

parent fd970823
......@@ -29,6 +29,7 @@ function setValue(deviceid) {
}
function deviceUsageCount() {
console.log('device_usage_offline')
redis.hincrby('_broker:1', 'device_usage', -1)
}
module.exports.deviceUsageCount = deviceUsageCount
\ No newline at end of file
......@@ -32,6 +32,7 @@ function setValue(deviceid) {
}
function deviceUsageCount() {
console.log('device_usage_online')
redis.hincrby('_broker:1', 'device_usage', 1)
}
module.exports.deviceUsageCount = deviceUsageCount
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment