Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57fdb5a
commit 64cd09d
Showing
10 changed files
with
158 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
const credential={ | ||
appkey: "", | ||
secretKey: "" | ||
} | ||
const credential = { | ||
appkey: '', | ||
secretKey: '', | ||
}; | ||
|
||
const deviceIds={ | ||
deviceId1: "", | ||
deviceId2: "", | ||
deviceId3: "" | ||
} | ||
let deviceIdT=[]; | ||
const deviceIds = { | ||
deviceId1: '', | ||
deviceId2: '', | ||
deviceId3: '', | ||
}; | ||
let deviceIdT = []; | ||
|
||
for (var key in deviceIds){ | ||
if(deviceIds.hasOwnProperty(key)){ | ||
deviceIdT.push(deviceIds[key]); | ||
} | ||
for (let key in deviceIds) { | ||
if (deviceIds.hasOwnProperty(key)) { | ||
deviceIdT.push(deviceIds[key]); | ||
} | ||
} | ||
|
||
const deviceIdArr = deviceIdT.join(';'); | ||
module.exports= {appKey: credential.appkey,secretKey: credential.secretKey,deviceId: deviceIdArr} | ||
module.exports = { appKey: credential.appkey, secretKey: credential.secretKey, deviceId: deviceIdArr }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require('./lib/sinrcpro'); | ||
module.exports = require('./lib/sinrcpro'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64cd09d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi,
can you make handlePayload more reliable, please? it looks compact and hard to read.
64cd09d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay sure. I'll spilt actions into different components.