createSoftwareMesg static method

Mesg createSoftwareMesg()

Implementation

static Mesg createSoftwareMesg() {
  int fieldIndex, subfieldIndex;
  Mesg newMesg = Mesg("Software", MesgNum.software);
  fieldIndex = 0;
  newMesg.setField(
    Field(
      "MessageIndex",
      254,
      132,
      1.0,
      0.0,
      "",
      false,
      ProfileType.messageIndex,
    ),
  );
  fieldIndex++;
  newMesg.setField(
    Field("Version", 3, 132, 100.0, 0.0, "", false, ProfileType.uint16),
  );
  fieldIndex++;
  newMesg.setField(
    Field("PartNumber", 5, 7, 1.0, 0.0, "", false, ProfileType.string),
  );
  fieldIndex++;

  return newMesg;
}