Modified the WhoIs demo to use BBMD if configured for BACnet/IP. Corrected the BVLC code.
This commit is contained in:
@@ -110,6 +110,14 @@ extern "C" {
|
||||
uint32_t bip_get_broadcast_addr(
|
||||
void);
|
||||
|
||||
/* gets an IP address by name, where name can be a
|
||||
string that is an IP address in dotted form, or
|
||||
a name that is a domain name
|
||||
returns 0 if not found, or
|
||||
an IP address in network byte order */
|
||||
long bip_getaddrbyname(const char *host_name);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
@@ -45,6 +45,18 @@ extern "C" {
|
||||
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#if BBMD_ENABLED
|
||||
void bvlc_maintenance_timer(
|
||||
unsigned seconds);
|
||||
#else
|
||||
#define bvlc_maintenance_timer(x)
|
||||
#endif
|
||||
/* registers with a bbmd as a foreign device */
|
||||
void bvlc_register_with_bbmd(
|
||||
long bbmd_address, /* in network byte order */
|
||||
uint16_t bbmd_port,
|
||||
uint16_t time_to_live_seconds);
|
||||
|
||||
uint16_t bvlc_receive(
|
||||
BACNET_ADDRESS * src, /* returns the source address */
|
||||
uint8_t * npdu, /* returns the NPDU */
|
||||
|
||||
@@ -68,9 +68,7 @@
|
||||
|
||||
#elif defined(BACDL_BIP)
|
||||
#include "bip.h"
|
||||
#ifdef BBMD_ENABLED
|
||||
#include "bvlc.h"
|
||||
#endif
|
||||
|
||||
#define datalink_init bip_init
|
||||
#ifdef BBMD_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user