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

    if (object_instance < MAX_MULTISTATE_OUTPUTS) {
        sprintf(text_string, "MULTISTATE OUTPUT %u", 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 Multistate_Output_Object_Name(
    uint32_t object_instance,
    BACNET_CHARACTER_STRING * object_name)
{
    static char text_string[32] = "";   
    bool status = false;
    if (object_instance < MAX_MULTISTATE_OUTPUTS) {
        sprintf(text_string, "MULTISTATE OUTPUT %u", object_instance);
        status = characterstring_init_ansi(object_name, text_string);
    }
    return status;
}
bool Multistate_Output_Object_Name ( uint32_t object_instance , BACNET_CHARACTER_STRING * object_name ) { static char text_string [ 32 ] = " " ; bool status = false ; if ( object_instance < MAX_MULTISTATE_OUTPUTS ) { sprintf ( text_string , " " , 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 */