Added sample Confirmed Private Transfer implementation files and demo for same.

This commit is contained in:
petermcs
2009-09-04 11:25:47 +00:00
parent de35ce7c5e
commit 8d80d25322
13 changed files with 2183 additions and 11 deletions
+12 -1
View File
@@ -200,7 +200,18 @@ extern "C" {
BACNET_ADDRESS * src,
BACNET_CONFIRMED_SERVICE_DATA * service_data);
void handler_conf_private_trans(
uint8_t * service_request,
uint16_t service_len,
BACNET_ADDRESS * src,
BACNET_CONFIRMED_SERVICE_DATA * service_data);
void handler_conf_private_trans_ack(
uint8_t * service_request,
uint16_t service_len,
BACNET_ADDRESS * src,
BACNET_CONFIRMED_SERVICE_ACK_DATA * service_data);
#
#ifdef __cplusplus
}
#endif /* __cplusplus */
+24
View File
@@ -0,0 +1,24 @@
/* Sample data structure for confirmed private transfer
We have a simple data structure which can be written to
and read from by sending a confirmed private transfer
request with the appropriate parameters.
*/
#define MY_MAX_STR 32
#define MY_MAX_BLOCK 8
#define MY_SVC_READ 0
#define MY_SVC_WRITE 1
#define MY_ERR_OK 0
#define MY_ERR_BAD_INDEX 1
typedef struct MyData {
uint8_t cMyByte1;
uint8_t cMyByte2;
float fMyReal;
int8_t sMyString[MY_MAX_STR+1]; // A little extra for the nul
} DATABLOCK;