Changed WriteProperty encode/decode to allow non-primative data. Decode still needs some work, and unit tests and demos need fixed.

This commit is contained in:
skarg
2006-08-29 11:03:35 +00:00
parent 3d0abf778a
commit 0e2585e044
2 changed files with 44 additions and 13 deletions
+7 -1
View File
@@ -47,7 +47,8 @@ typedef struct BACnet_Write_Property_Data {
uint32_t object_instance;
BACNET_PROPERTY_ID object_property;
int32_t array_index; /* use BACNET_ARRAY_ALL when not setting */
BACNET_APPLICATION_DATA_VALUE value;
uint8_t value[MAX_APDU];
uint16_t value_len;
uint8_t priority; /* use BACNET_NO_PRIORITY if no priority */
} BACNET_WRITE_PROPERTY_DATA;
@@ -59,6 +60,11 @@ extern "C" {
int wp_encode_apdu(uint8_t * apdu,
uint8_t invoke_id, BACNET_WRITE_PROPERTY_DATA * data);
int wp_encode_application_apdu(uint8_t * apdu,
uint8_t invoke_id,
BACNET_WRITE_PROPERTY_DATA * data,
BACNET_APPLICATION_DATA_VALUE * value);
/* decode the service request only */
int wp_decode_service_request(uint8_t * apdu,
unsigned apdu_len, BACNET_WRITE_PROPERTY_DATA * data);