AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/demo/readprop/main.c
void My_Read_Property_Ack_Handler(
    uint8_t * service_request,
    uint16_t service_len,
    BACNET_ADDRESS * src,
    BACNET_CONFIRMED_SERVICE_ACK_DATA * service_data)
{
    int len = 0;
    BACNET_READ_PROPERTY_DATA data;

    if (address_match(&Target_Address, src) &&
        (service_data->invoke_id == Request_Invoke_ID)) {
        len =
            rp_ack_decode_service_request(service_request, service_len, &data);
        if (len < 0) {
            printf("<decode failed!>\n");
        } else {
            rp_ack_print_data(&data);
        }
    }
}
/** Handler for a ReadProperty ACK.
 * @ingroup DSRP
 * Doesn't actually do anything, except, for debugging, to
 * print out the ACK data of a matching request.
 *
 * @param service_request [in] The contents of the service request.
 * @param service_len [in] The length of the service_request.
 * @param src [in] BACNET_ADDRESS of the source of the message
 * @param service_data [in] The BACNET_CONFIRMED_SERVICE_DATA information
 *                          decoded from the APDU header of this message.
 */
Handler for a ReadProperty ACK.
@ingroup DSRP
Doesn't actually do anything, except, for debugging, to
print out the ACK data of a matching request.

@param service_request [in] The contents of the service request.
@param service_len [in] The length of the service_request.
@param src [in] BACNET_ADDRESS of the source of the message
@param service_data [in] The BACNET_CONFIRMED_SERVICE_DATA information
decoded from the APDU header of this message.
Handler for a ReadProperty ACK . @ingroup DSRP Doesn ' t actually do anything except for debugging to print out the ACK data of a matching request . @param service_request [ in ] The contents of the service request . @param service_len [ in ] The length of the service_request . @param src [ in ] BACNET_ADDRESS of the source of the message @param service_data [ in ] The BACNET_CONFIRMED_SERVICE_DATA information decoded from the APDU header of this message .
void My_Read_Property_Ack_Handler(
    uint8_t * service_request,
    uint16_t service_len,
    BACNET_ADDRESS * src,
    BACNET_CONFIRMED_SERVICE_ACK_DATA * service_data)
{
    int len = 0;
    BACNET_READ_PROPERTY_DATA data;
    if (address_match(&Target_Address, src) &&
        (service_data->invoke_id == Request_Invoke_ID)) {
        len =
            rp_ack_decode_service_request(service_request, service_len, &data);
        if (len < 0) {
            printf("<decode failed!>\n");
        } else {
            rp_ack_print_data(&data);
        }
    }
}
void My_Read_Property_Ack_Handler ( uint8_t * service_request , uint16_t service_len , BACNET_ADDRESS * src , BACNET_CONFIRMED_SERVICE_ACK_DATA * service_data ) { int len = 0 ; BACNET_READ_PROPERTY_DATA data ; if ( address_match ( & Target_Address , src ) && ( service_data -> invoke_id == Request_Invoke_ID ) ) { len = rp_ack_decode_service_request ( service_request , service_len , & data ) ; if ( len < 0 ) { printf ( " \n " ) ; } else { rp_ack_print_data ( & data ) ; } } }
Handler for a ReadProperty ACK.
Handler for a ReadProperty ACK .