AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/at91sam7s/bv.c
bool Binary_Value_Object_Name(
    uint32_t object_instance,
    BACNET_CHARACTER_STRING * object_name)
{
    static char text_string[16] = "BV-0";       /* okay for single thread */
    bool status = false;

    if (object_instance < MAX_BINARY_VALUES) {
        text_string[3] = '0' + (uint8_t) object_instance;
        status = characterstring_init_ansi(object_name, text_string);
    }

    return status;
}
/* note: the object name must be unique within this device */
the object name must be unique within this device
the object name must be unique within this device
bool Binary_Value_Object_Name(
    uint32_t object_instance,
    BACNET_CHARACTER_STRING * object_name)
{
    static char text_string[16] = "BV-0";       
    bool status = false;
    if (object_instance < MAX_BINARY_VALUES) {
        text_string[3] = '0' + (uint8_t) object_instance;
        status = characterstring_init_ansi(object_name, text_string);
    }
    return status;
}
bool Binary_Value_Object_Name ( uint32_t object_instance , BACNET_CHARACTER_STRING * object_name ) { static char text_string [ 16 ] = " " ; bool status = false ; if ( object_instance < MAX_BINARY_VALUES ) { text_string [ 3 ] = ' ' + ( uint8_t ) object_instance ; status = characterstring_init_ansi ( object_name , text_string ) ; } return status ; }
note: the object name must be unique within this device
note : the object name must be unique within this device
/* okay for single thread */