AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/command.c
bool Command_Object_Name(
    uint32_t object_instance,
    BACNET_CHARACTER_STRING * object_name)
{
    static char text_string[32] = "";   /* okay for single thread */
    unsigned int index;
    bool status = false;

    index = Command_Instance_To_Index(object_instance);
    if (index < MAX_COMMANDS) {
        sprintf(text_string, "COMMAND %lu", (unsigned long) index);
        status = characterstring_init_ansi(object_name, text_string);
    }

    return status;
}
/**
 * For a given object instance-number, loads the object-name into
 * a characterstring.
 *
 * @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.

@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 . @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 Command_Object_Name(
    uint32_t object_instance,
    BACNET_CHARACTER_STRING * object_name)
{
    static char text_string[32] = "";   
    unsigned int index;
    bool status = false;
    index = Command_Instance_To_Index(object_instance);
    if (index < MAX_COMMANDS) {
        sprintf(text_string, "COMMAND %lu", (unsigned long) index);
        status = characterstring_init_ansi(object_name, text_string);
    }
    return status;
}
bool Command_Object_Name ( uint32_t object_instance , BACNET_CHARACTER_STRING * object_name ) { static char text_string [ 32 ] = " " ; unsigned int index ; bool status = false ; index = Command_Instance_To_Index ( object_instance ) ; if ( index < MAX_COMMANDS ) { sprintf ( text_string , " " , ( unsigned long ) index ) ; 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 .
/* okay for single thread */