AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/command.c
bool Command_Present_Value_Set(
    uint32_t object_instance,
    uint32_t value)
{
    bool status = false;
    unsigned int index;

    index = Command_Instance_To_Index(object_instance);
    if (index < MAX_COMMANDS) {
        Command_Descr[index].Present_Value = value;
        status = true;
    }

    return status;
}
/**
 * For a given object instance-number, sets the present-value
 *
 * @param  object_instance - object-instance number of the object
 * @param  value - present-value to set
 *
 * @return  true if values are within range and present-value is set.
 */


@return  true if values are within range and present-value is set.
@return true if values are within range and present - value is set .
bool Command_Present_Value_Set(
    uint32_t object_instance,
    uint32_t value)
{
    bool status = false;
    unsigned int index;
    index = Command_Instance_To_Index(object_instance);
    if (index < MAX_COMMANDS) {
        Command_Descr[index].Present_Value = value;
        status = true;
    }
    return status;
}
bool Command_Present_Value_Set ( uint32_t object_instance , uint32_t value ) { bool status = false ; unsigned int index ; index = Command_Instance_To_Index ( object_instance ) ; if ( index < MAX_COMMANDS ) { Command_Descr [ index ] . Present_Value = value ; status = true ; } return status ; }
For a given object instance-number, sets the present-value
 @param  object_instance - object-instance number of the object
 @param  value - present-value to set
For a given object instance - number sets the present - value @param object_instance - object - instance number of the object @param value - present - value to set