Merge pull request #115 from sandfox/patch-1

Minor examples tweak for friendlier output
This commit is contained in:
Andrew Naylor 2013-09-18 14:10:07 -07:00
Родитель 7dc729db9d f175c4ee25
Коммит 11377200e5
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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) {