The WritePropertyMultiple does not sends the priority. In the function wpmencodeapduobjectproperty located in wpm.c, the apdulen variable is not increased after calling encodecontextunsigned for the priority property. Bug #58.

This commit is contained in:
skarg
2018-12-04 16:13:15 +00:00
parent 33a812a922
commit 212dca46da
+2 -1
View File
@@ -248,7 +248,8 @@ int wpm_encode_apdu_object_property(
}
apdu_len += encode_closing_tag(&apdu[apdu_len], 2);
if (wpdata->priority != BACNET_NO_PRIORITY) {
encode_context_unsigned(&apdu[apdu_len], 3, wpdata->priority);
apdu_len +=
encode_context_unsigned(&apdu[apdu_len], 3, wpdata->priority);
}
}