AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/lo.c
bool Lighting_Output_Lighting_Command(
    uint32_t object_instance,
    BACNET_LIGHTING_COMMAND *value)
{
    bool status = false;
    unsigned index = 0;

    index = Lighting_Output_Instance_To_Index(object_instance);
    if (index < MAX_LIGHTING_OUTPUTS) {
        status = lighting_command_copy(value,
            &Lighting_Output[index].Lighting_Command);
    }

    return status;
}
/**
 * For a given object instance-number, gets the lighting-command.
 *
 * @param object_instance - object-instance number of the object
 * @param value - holds the lighting command value
 *
 * @return true if lighting command was retrieved
 */
For a given object instance-number, gets the lighting-command.
@param object_instance - object-instance number of the object
@param value - holds the lighting command value

@return true if lighting command was retrieved
For a given object instance - number gets the lighting - command . @param object_instance - object - instance number of the object @param value - holds the lighting command value @return true if lighting command was retrieved
bool Lighting_Output_Lighting_Command(
    uint32_t object_instance,
    BACNET_LIGHTING_COMMAND *value)
{
    bool status = false;
    unsigned index = 0;
    index = Lighting_Output_Instance_To_Index(object_instance);
    if (index < MAX_LIGHTING_OUTPUTS) {
        status = lighting_command_copy(value,
            &Lighting_Output[index].Lighting_Command);
    }
    return status;
}
bool Lighting_Output_Lighting_Command ( uint32_t object_instance , BACNET_LIGHTING_COMMAND * value ) { bool status = false ; unsigned index = 0 ; index = Lighting_Output_Instance_To_Index ( object_instance ) ; if ( index < MAX_LIGHTING_OUTPUTS ) { status = lighting_command_copy ( value , & Lighting_Output [ index ] . Lighting_Command ) ; } return status ; }
For a given object instance-number, gets the lighting-command.
For a given object instance - number gets the lighting - command .