AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/object/gw_device.c
bool Routed_Device_Valid_Object_Instance_Number(
    uint32_t object_id)
{
    bool bResult = false;
    DEVICE_OBJECT_DATA *pDev = &Devices[iCurrent_Device_Idx];

    if (pDev->bacObj.Object_Instance_Number == object_id)
        bResult = true;

    return bResult;
}
/** See if the requested Object instance matches that for the currently
 * indexed Device Object.
 * iCurrent_Device_Idx must have been set to point to this Device Object
 * before this function is called.
 * @param object_id [in] Object ID of the desired Device object.
 * 			If the wildcard value (BACNET_MAX_INSTANCE), always matches.
 * @return True if Object ID matches the present Device, else False.
 */
See if the requested Object instance matches that for the currently
indexed Device Object.
iCurrent_Device_Idx must have been set to point to this Device Object
before this function is called.
@param object_id [in] Object ID of the desired Device object.
If the wildcard value (BACNET_MAX_INSTANCE), always matches.
@return True if Object ID matches the present Device, else False.
See if the requested Object instance matches that for the currently indexed Device Object . iCurrent_Device_Idx must have been set to point to this Device Object before this function is called . @param object_id [ in ] Object ID of the desired Device object . If the wildcard value ( BACNET_MAX_INSTANCE ) always matches . @return True if Object ID matches the present Device else False .
bool Routed_Device_Valid_Object_Instance_Number(
    uint32_t object_id)
{
    bool bResult = false;
    DEVICE_OBJECT_DATA *pDev = &Devices[iCurrent_Device_Idx];
    if (pDev->bacObj.Object_Instance_Number == object_id)
        bResult = true;
    return bResult;
}
bool Routed_Device_Valid_Object_Instance_Number ( uint32_t object_id ) { bool bResult = false ; DEVICE_OBJECT_DATA * pDev = & Devices [ iCurrent_Device_Idx ] ; if ( pDev -> bacObj . Object_Instance_Number == object_id ) bResult = true ; return bResult ; }
See if the requested Object instance matches that for the currently
 indexed Device Object.
See if the requested Object instance matches that for the currently indexed Device Object .