Changed bacnet name duplicate check to allow to rewrite with the same name to the same object without duplicate name error.

This commit is contained in:
skarg
2012-05-05 03:28:34 +00:00
parent 430f0869ca
commit 35e953ba8b
3 changed files with 34 additions and 14 deletions
+9 -2
View File
@@ -37,17 +37,24 @@ extern "C" {
void bacnet_name_init(
uint16_t eeprom_offset,
char *default_string);
bool bacnet_name_save(
uint16_t offset,
uint8_t encoding,
char *str,
uint8_t length);
void bacnet_name(
uint16_t eeprom_offset,
BACNET_CHARACTER_STRING * char_string,
char *default_string);
bool bacnet_name_write(
bool bacnet_name_write_unique(
uint16_t offset,
int object_type,
uint32_t object_instance,
BACNET_CHARACTER_STRING * char_string,
BACNET_ERROR_CLASS * error_class,
BACNET_ERROR_CODE * error_code);
/* no required minumum length or duplicate checking */
bool bacnet_name_write_other(
bool bacnet_name_write(
uint16_t offset,
BACNET_CHARACTER_STRING * char_string,
BACNET_ERROR_CLASS * error_class,