Added ascii-hex conversion in the octet-string library to allow ascii-hex to be parsed correctly from demo applications.

This commit is contained in:
skarg
2011-09-17 04:21:32 +00:00
parent a9e752d64d
commit 120c2734ee
3 changed files with 58 additions and 3 deletions
+3 -2
View File
@@ -45,6 +45,7 @@
#include "bacapp.h"
#include "bactext.h"
#include "datetime.h"
#include "bacstr.h"
/** @file bacapp.c Utilities for the BACnet_Application_Data_Value */
@@ -1188,8 +1189,8 @@ bool bacapp_parse_application_data(
#endif
case BACNET_APPLICATION_TAG_OCTET_STRING:
status =
octetstring_init(&value->type.Octet_String,
(uint8_t *) argv, strlen(argv));
octetstring_init_ascii_hex(&value->type.Octet_String,
argv);
break;
case BACNET_APPLICATION_TAG_CHARACTER_STRING:
status =