AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/lo.c
bool Lighting_Output_Lighting_Command_Set(
    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) {
        // FIXME: check lighting command member values
        status = lighting_command_copy(
            &Lighting_Output[index].Lighting_Command,
            value);
        // FIXME: set all the other values, and get the light levels moving
    }

    return status;
}
/**
 * For a given object instance-number, sets 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 set
 */
For a given object instance-number, sets 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 set
For a given object instance - number sets 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 set
bool Lighting_Output_Lighting_Command_Set(
    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(
            &Lighting_Output[index].Lighting_Command,
            value);
    }
    return status;
}
bool Lighting_Output_Lighting_Command_Set ( 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 ( & Lighting_Output [ index ] . Lighting_Command , value ) ; } return status ; }
For a given object instance-number, sets the lighting-command.
For a given object instance - number sets the lighting - command .
// FIXME: check lighting command member values // FIXME: set all the other values, and get the light levels moving