Commit 8617e7df by Mine ArithmeticOp

add log see token id

parent e0d42e97
......@@ -32,11 +32,13 @@ function authCheck(client_id, token, password, callback) {
// console.log('result : ' + util.inspect(res.result, false, null, true))
if (res.result) {
var token_profile = (res && res.result && res.result[0]) ? res.result[0] : {};
console.log('token_profile: ' + token_profile)
var mqttauth = {
clientid: client_id,
token: token,
password: password
};
console.log('mqttauth: ' + mqttauth)
callback(validator.auth_connect(mqttauth, token_profile));
}
else {
......
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