AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/lo.c
bool Lighting_Output_Object_Name(
    uint32_t object_instance,
    BACNET_CHARACTER_STRING * object_name)
{
    char text_string[32] = "";
    bool status = false;
    unsigned index = 0;

    index = Lighting_Output_Instance_To_Index(object_instance);
    if (index < MAX_LIGHTING_OUTPUTS) {
        sprintf(text_string, "LIGHTING OUTPUT %lu",
            (unsigned long) object_instance);
        status = characterstring_init_ansi(object_name, text_string);
    }

    return status;
}
/**
 * For a given object instance-number, loads the object-name into
 * a characterstring. Note that the object name must be unique
 * within this device.
 *
 * @param  object_instance - object-instance number of the object
 * @param  object_name - holds the object-name retrieved
 *
 * @return  true if object-name was retrieved
 */
For a given object instance-number, loads the object-name into
a characterstring. Note that the object name must be unique
within this device.

@param  object_instance - object-instance number of the object
@param  object_name - holds the object-name retrieved

@return  true if object-name was retrieved
For a given object instance - number loads the object - name into a characterstring . Note that the object name must be unique within this device . @param object_instance - object - instance number of the object @param object_name - holds the object - name retrieved @return true if object - name was retrieved
bool Lighting_Output_Object_Name(
    uint32_t object_instance,
    BACNET_CHARACTER_STRING * object_name)
{
    char text_string[32] = "";
    bool status = false;
    unsigned index = 0;
    index = Lighting_Output_Instance_To_Index(object_instance);
    if (index < MAX_LIGHTING_OUTPUTS) {
        sprintf(text_string, "LIGHTING OUTPUT %lu",
            (unsigned long) object_instance);
        status = characterstring_init_ansi(object_name, text_string);
    }
    return status;
}
bool Lighting_Output_Object_Name ( uint32_t object_instance , BACNET_CHARACTER_STRING * object_name ) { char text_string [ 32 ] = " " ; bool status = false ; unsigned index = 0 ; index = Lighting_Output_Instance_To_Index ( object_instance ) ; if ( index < MAX_LIGHTING_OUTPUTS ) { sprintf ( text_string , " " , ( unsigned long ) object_instance ) ; status = characterstring_init_ansi ( object_name , text_string ) ; } return status ; }
For a given object instance-number, loads the object-name into
 a characterstring.
For a given object instance - number loads the object - name into a characterstring .