[Bacnet-developers] BACNET_CHARACTER_STRING
Brought to you by:
skarg
|
From: John G. <jg...@ne...> - 2005-12-16 22:28:51
|
I couldn't find any good examples on how to use this
BACNET_CHARACTER_STRING.
To encode the value would I do something like:
BACNET_CHARACTER_STRING BACnet_Character_String;
int bytes =
encode_bacnet_string((uint8_t*)BACnet_Character_String.value, mystring,
strlen(mystring) );
And then how do I decode? I'm guessing I use decode_character_string()
but I'm not entirely sure how to use it with the write struct, and your
example of this tag in bacapp.h is commented out. I'm trying to do this
decode in Device_Write_Property() so I can take the value and write the
string as a char*.
Thanks,
John
|