Added function rp_ack_fully_decode_service_request() to parse and return the same structure as RPM (but the list has just one property). Convenient when you want to switch hit between RP and RPM.

Put it in the handler/h_rp_a.c file since I wasn't sure if we wanted it in the stack src itself.
This commit is contained in:
tbrennan3
2010-04-15 20:48:06 +00:00
parent c5977b8933
commit 1dc93c3a28
2 changed files with 100 additions and 0 deletions
+8
View File
@@ -50,6 +50,9 @@ typedef struct BACnet_Read_Property_Data {
BACNET_ERROR_CODE error_code;
} BACNET_READ_PROPERTY_DATA;
/* Forward declaration of RPM-style data structure */
struct BACnet_Read_Access_Data;
/** Reads one property for this object type of a given instance.
* A function template; @see device.c for assignment to object types.
* @ingroup ObjHelpers
@@ -99,6 +102,11 @@ extern "C" {
int apdu_len, /* total length of the apdu */
BACNET_READ_PROPERTY_DATA * rpdata);
/* Decode instead to RPM-style data structure. */
int rp_ack_fully_decode_service_request(
uint8_t * apdu,
int apdu_len,
struct BACnet_Read_Access_Data * read_access_data);
#ifdef TEST
#include "ctest.h"