diff --git a/gt06.js b/gt06.js index 2b521c7..660c753 100644 --- a/gt06.js +++ b/gt06.js @@ -38,9 +38,9 @@ Gt06.prototype.parse = function (data) { // case 0x15: // //parseLocation(msg); // break; - // case 0x16: - // result = parseAlarm(msg); - // break; + case 0x16: + Object.assign(parsed, parseAlarm(msg), { imei:this.imei }); + break; // case 0x1A: // //parseLocation(msg); // break; diff --git a/package.json b/package.json index fe2d83a..212bc17 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gt06", - "version": "1.0.7", + "version": "1.0.8", "description": "Parses and creates responses for GT06 GPS tracker messages", "main": "gt06.js", "scripts": {