diff --git a/hobu_alert_system_control/app.js b/hobu_alert_system_control/app.js index 92a700c..ea97460 100644 --- a/hobu_alert_system_control/app.js +++ b/hobu_alert_system_control/app.js @@ -125,10 +125,10 @@ function connectRFIDReader(item, ipcon) { if(state == Tinkerforge.BrickletNFCRFID.STATE_REQUEST_TAG_ID_READY) { nr.getTagID( function (tagType, tidLength, tid) { - var s = 'Found tag of type ' + tagType + - ' with ID [' + tid[0].toString(16); var tagID = tid[0].toString(16); - + var s = 'Found tag of type ' + tagType + + ' with ID [' + tagID; + for(var i = 1; i < tidLength; i++) { s += ' ' + tid[i].toString(16); tagID += ' ' + tid[i].toString(16);