From 3eff297a4843d92cb1c22732c0eea9a2fc8579c2 Mon Sep 17 00:00:00 2001 From: Steve Karg Date: Sat, 27 Apr 2024 12:42:08 -0500 Subject: [PATCH] added some help about decoding complex data in WriteProperty example app. (#627) --- apps/writeprop/main.c | 12 ++++++++---- apps/writepropm/main.c | 8 ++++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/apps/writeprop/main.c b/apps/writeprop/main.c index 7fc7d8a2..1b80a264 100644 --- a/apps/writeprop/main.c +++ b/apps/writeprop/main.c @@ -169,11 +169,11 @@ static void print_help(char *filename) printf("\n"); printf( "object-type:\n" - "The object type is object that you are reading. It\n" + "The object type is object that you are writing. It\n" "can be defined either as the object-type name string\n" "as defined in the BACnet specification, or as the\n" "integer value of the enumeration BACNET_OBJECT_TYPE\n" - "in bacenum.h. For example if you were reading Analog\n" + "in bacenum.h. For example if you were writing Analog\n" "Output 2, the object-type would be analog-output or 1.\n"); printf("\n"); printf( @@ -184,11 +184,11 @@ static void print_help(char *filename) printf("\n"); printf( "property:\n" - "The property of the object that you are reading. It\n" + "The property of the object that you are writing. It\n" "can be defined either as the property name string as\n" "defined in the BACnet specification, or as an integer\n" "value of the enumeration BACNET_PROPERTY_ID in\n" - "bacenum.h. For example, if you were reading the Present\n" + "bacenum.h. For example, if you were writing the Present\n" "Value property, use present-value or 85 as the property.\n"); printf("\n"); printf( @@ -214,6 +214,10 @@ static void print_help(char *filename) "Context tags are created using two tags in a row. The context tag\n" "is preceded by a C, and followed by the application tag.\n" "Ctag atag. C2 4 creates a context 2 tagged REAL.\n"); + printf( + "Complex data use the property argument and a tag number -1 to\n" + "lookup the appropriate internal application tag for the value.\n" + "The complex data value argument varies in its construction.\n"); printf("\n"); printf( "value:\n" diff --git a/apps/writepropm/main.c b/apps/writepropm/main.c index 91ff26c2..8c904698 100644 --- a/apps/writepropm/main.c +++ b/apps/writepropm/main.c @@ -198,11 +198,11 @@ static void print_help(char *filename) "Device Object 123, the device-instance would be 123.\n"); printf("\n"); printf("object-type:\n" - "The object type is object that you are reading. It\n" + "The object type is object that you are writing. It\n" "can be defined either as the object-type name string\n" "as defined in the BACnet specification, or as the\n" "integer value of the enumeration BACNET_OBJECT_TYPE\n" - "in bacenum.h. For example if you were reading Analog\n" + "in bacenum.h. For example if you were writing Analog\n" "Output 2, the object-type would be analog-output or 1.\n"); printf("\n"); printf("object-instance:\n" @@ -235,6 +235,10 @@ static void print_help(char *filename) "use a tag of 4.\n" "Context tags are created using two tags in a row. The context tag\n" "is preceded by a C. Ctag tag. C2 4 creates a context 2 tagged REAL.\n"); + printf( + "Complex data use the property argument and a tag number -1 to\n" + "lookup the appropriate internal application tag for the value.\n" + "The complex data value argument varies in its construction.\n"); printf("\n"); printf("value:\n" "The value is an ASCII representation of some type of data that you\n"