AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/bdk-atxx4-mstp/device.c
int Device_Read_Property(
    BACNET_READ_PROPERTY_DATA * rpdata)
{
    int apdu_len = BACNET_STATUS_ERROR;
    struct my_object_functions *pObject = NULL;

    /* initialize the default return values */
    rpdata->error_class = ERROR_CLASS_OBJECT;
    rpdata->error_code = ERROR_CODE_UNKNOWN_OBJECT;
    pObject = Device_Objects_Find_Functions(rpdata->object_type);
    if (pObject != NULL) {
        if (pObject->Object_Valid_Instance &&
            pObject->Object_Valid_Instance(rpdata->object_instance)) {
            if (pObject->Object_Read_Property) {
                apdu_len = pObject->Object_Read_Property(rpdata);
            }
        }
    }

    return apdu_len;
}
/* Encodes the property APDU and returns the length,
   or sets the error, and returns BACNET_STATUS_ERROR */
Encodes the property APDU and returns the length,
or sets the error, and returns BACNET_STATUS_ERROR
Encodes the property APDU and returns the length or sets the error and returns BACNET_STATUS_ERROR
int Device_Read_Property(
    BACNET_READ_PROPERTY_DATA * rpdata)
{
    int apdu_len = BACNET_STATUS_ERROR;
    struct my_object_functions *pObject = NULL;
    rpdata->error_class = ERROR_CLASS_OBJECT;
    rpdata->error_code = ERROR_CODE_UNKNOWN_OBJECT;
    pObject = Device_Objects_Find_Functions(rpdata->object_type);
    if (pObject != NULL) {
        if (pObject->Object_Valid_Instance &&
            pObject->Object_Valid_Instance(rpdata->object_instance)) {
            if (pObject->Object_Read_Property) {
                apdu_len = pObject->Object_Read_Property(rpdata);
            }
        }
    }
    return apdu_len;
}
int Device_Read_Property ( BACNET_READ_PROPERTY_DATA * rpdata ) { int apdu_len = BACNET_STATUS_ERROR ; struct my_object_functions * pObject = NULL ; rpdata -> error_class = ERROR_CLASS_OBJECT ; rpdata -> error_code = ERROR_CODE_UNKNOWN_OBJECT ; pObject = Device_Objects_Find_Functions ( rpdata -> object_type ) ; if ( pObject != NULL ) { if ( pObject -> Object_Valid_Instance && pObject -> Object_Valid_Instance ( rpdata -> object_instance ) ) { if ( pObject -> Object_Read_Property ) { apdu_len = pObject -> Object_Read_Property ( rpdata ) ; } } } return apdu_len ; }
Encodes the property APDU and returns the length,
or sets the error, and returns BACNET_STATUS_ERROR
Encodes the property APDU and returns the length or sets the error and returns BACNET_STATUS_ERROR
/* initialize the default return values */