createFileIdMesg static method
Implementation
static Mesg createFileIdMesg() {
int fieldIndex, subfieldIndex;
Mesg newMesg = Mesg("FileId", MesgNum.fileId);
fieldIndex = 0;
newMesg.setField(
Field("Type", 0, 0, 1.0, 0.0, "", false, ProfileType.file),
);
fieldIndex++;
newMesg.setField(
Field(
"Manufacturer",
1,
132,
1.0,
0.0,
"",
false,
ProfileType.manufacturer,
),
);
fieldIndex++;
newMesg.setField(
Field("Product", 2, 132, 1.0, 0.0, "", false, ProfileType.uint16),
);
subfieldIndex = 0;
newMesg.fields[fieldIndex].subfields.add(
Subfield("FaveroProduct", 132, 1.0, 0.0, ""),
);
newMesg.fields[fieldIndex].subfields[subfieldIndex].addMap(1, 263);
subfieldIndex++;
newMesg.fields[fieldIndex].subfields.add(
Subfield("GarminProduct", 132, 1.0, 0.0, ""),
);
newMesg.fields[fieldIndex].subfields[subfieldIndex].addMap(1, 1);
newMesg.fields[fieldIndex].subfields[subfieldIndex].addMap(1, 15);
newMesg.fields[fieldIndex].subfields[subfieldIndex].addMap(1, 13);
newMesg.fields[fieldIndex].subfields[subfieldIndex].addMap(1, 89);
subfieldIndex++;
fieldIndex++;
newMesg.setField(
Field("SerialNumber", 3, 140, 1.0, 0.0, "", false, ProfileType.uint32z),
);
fieldIndex++;
newMesg.setField(
Field("TimeCreated", 4, 134, 1.0, 0.0, "", false, ProfileType.dateTime),
);
fieldIndex++;
newMesg.setField(
Field("Number", 5, 132, 1.0, 0.0, "", false, ProfileType.uint16),
);
fieldIndex++;
newMesg.setField(
Field("ProductName", 8, 7, 1.0, 0.0, "", false, ProfileType.string),
);
fieldIndex++;
return newMesg;
}