Feature/refactor-apps-string-parsing (#1152)
* Added bacnet_str functions for parsing various numeric strings. * Renamed BACnet string API to be clearer when no stdlib function exists. * Fixed incompatible types - from 'BACNET_UNSIGNED_INTEGER *' to 'unsigned long *' warning * Changed bacnet-str-to functions to use ERANGE for error detection. * Refactored some apps to use common string parsing for BACnet data types. * Refactor bacapp_parse_application_data to use bacnet_string_to_unsigned for better clarity * Added strtol for BACnetEventType.
This commit is contained in:
@@ -242,6 +242,15 @@ const char *bactext_timer_transition_name(uint32_t index);
|
||||
BACNET_STACK_EXPORT
|
||||
const char *bactext_timer_state_name(uint32_t index);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
const char *bactext_boolean_value_name(uint32_t index);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
bool bactext_property_states_strtoul(
|
||||
BACNET_PROPERTY_STATES object_property,
|
||||
const char *search_name,
|
||||
uint32_t *found_index);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
bool bactext_object_property_strtoul(
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
|
||||
Reference in New Issue
Block a user