Added parser for command line parsing of a BACnet BitString. This is nice if you want to write Event Enable, for example. Expects the ASCII bits as "1011001" or "1,0,1,1,0,0,1" or "1 0 1 1 0 0 1".

This commit is contained in:
skarg
2014-06-13 21:25:40 +00:00
parent fa1c457f2f
commit 63288d062c
3 changed files with 53 additions and 4 deletions
+3 -1
View File
@@ -87,10 +87,12 @@ extern "C" {
bool bitstring_copy(
BACNET_BIT_STRING * dest,
BACNET_BIT_STRING * src);
bool bitstring_same(
BACNET_BIT_STRING * bitstring1,
BACNET_BIT_STRING * bitstring2);
bool bitstring_init_ascii(
BACNET_BIT_STRING * bit_string,
const char *ascii);
/* returns false if the string exceeds capacity
initialize by using length=0 */