Merge pull request #115 from sandfox/patch-1
Minor examples tweak for friendlier output
This commit is contained in:
Коммит
11377200e5
|
@ -12,6 +12,6 @@ function handleFeedback(feedbackData) {
|
|||
time = feedbackData[i].time;
|
||||
device = feedbackData[i].device;
|
||||
|
||||
console.log("Device: " + device.toString() + " has been unreachable, since: " + time);
|
||||
console.log("Device: " + device.toString('hex') + " has been unreachable, since: " + time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ service.on('connected', function() {
|
|||
});
|
||||
|
||||
service.on('transmitted', function(notification, device) {
|
||||
console.log("Notification transmitted to:" + device.token.toString());
|
||||
console.log("Notification transmitted to:" + device.token.toString('hex'));
|
||||
});
|
||||
|
||||
service.on('transmissionError', function(errCode, notification, device) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче