cf4f62f7e0
* Added Who-Is-Router-To-Network process in basic Notification Class when recipient address is missing the router MAC address. * Added buffer_length parameter to octet string buffer decode functions * Fixed BACnet address handling for I-Am-Router address updating the recipient list address for the next hop router. * Changed VMAC encoding and decoding to use octet string buffer API to reduce stack RAM.
66 lines
1.3 KiB
C
66 lines
1.3 KiB
C
/**
|
|
* @file
|
|
* @brief Stub functions for unit test of a BACnet object
|
|
* @author Steve Karg <skarg@users.sourceforge.net>
|
|
* @date December 2022
|
|
*
|
|
* @copyright SPDX-License-Identifier: MIT
|
|
*/
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include "bacnet/datetime.h"
|
|
#include "bacnet/bacdef.h"
|
|
#include "bacnet/npdu.h"
|
|
#include "bacnet/basic/npdu/h_npdu.h"
|
|
#include "bacnet/basic/object/nc.h"
|
|
|
|
uint8_t Send_CEvent_Notify_Address(
|
|
uint8_t *pdu,
|
|
uint16_t pdu_size,
|
|
const BACNET_EVENT_NOTIFICATION_DATA *data,
|
|
BACNET_ADDRESS *dest)
|
|
{
|
|
(void)pdu;
|
|
(void)pdu_size;
|
|
(void)data;
|
|
(void)dest;
|
|
return 0;
|
|
}
|
|
|
|
int Send_UEvent_Notify(
|
|
uint8_t *buffer,
|
|
const BACNET_EVENT_NOTIFICATION_DATA *data,
|
|
BACNET_ADDRESS *dest)
|
|
{
|
|
(void)buffer;
|
|
(void)data;
|
|
(void)dest;
|
|
return 0;
|
|
}
|
|
|
|
uint8_t
|
|
Send_CEvent_Notify(uint32_t device_id, BACNET_EVENT_NOTIFICATION_DATA *data)
|
|
{
|
|
(void)device_id;
|
|
(void)data;
|
|
return 0;
|
|
}
|
|
|
|
void Send_WhoIs(int32_t low_limit, int32_t high_limit)
|
|
{
|
|
(void)low_limit;
|
|
(void)high_limit;
|
|
}
|
|
|
|
void Send_Who_Is_Router_To_Network(BACNET_ADDRESS *dst, int dnet)
|
|
{
|
|
(void)dst;
|
|
(void)dnet;
|
|
}
|
|
|
|
void npdu_set_i_am_router_to_network_handler(
|
|
i_am_router_to_network_function pFunction)
|
|
{
|
|
(void)pFunction;
|
|
}
|