25 lines
493 B
JavaScript
25 lines
493 B
JavaScript
/*
|
|
ZDA product info
|
|
1 2 3 4 5
|
|
| | | | |
|
|
$GPTXT,xx,yy,zz,info*hh
|
|
1) The total number of statements in the current message, 01 to 99
|
|
2) Statement number, 01 to 99
|
|
3) Text identifier
|
|
4) Text information
|
|
5) Checksum
|
|
*/
|
|
|
|
exports.ID = 'TXT';
|
|
exports.TYPE = 'product-info';
|
|
|
|
exports.decode = function(fields) {
|
|
return {
|
|
sentence: exports.ID,
|
|
type: exports.TYPE,
|
|
xx: fields[1],
|
|
yy: fields[2],
|
|
zz: fields[3],
|
|
info: fields[4]
|
|
};
|
|
} |