Working out the sending of Network Layer Messages; trying to refactor the actual sending routines to just one since the beginning, end, and error handling are the same for all types - just the payload is different.

For many, need to know what our managed downstream BACnet Network list is, so added that argument.
This commit is contained in:
tbrennan3
2010-10-07 21:00:46 +00:00
parent 9efd3465cf
commit 478d7aeb41
3 changed files with 130 additions and 72 deletions
+1 -2
View File
@@ -61,7 +61,6 @@
/** @file gateway/main.c Example virtual gateway application using the BACnet Stack. */
/* Prototypes */
extern void routing_npdu_handler( BACNET_ADDRESS * src, uint8_t * pdu, uint16_t pdu_len);
/* (Doxygen note: The next two lines pull all the following Javadoc
* into the GatewayDemo module.) */
@@ -203,7 +202,7 @@ int main(
/* process */
if (pdu_len) {
routing_npdu_handler(&src, &Rx_Buf[0], pdu_len);
routing_npdu_handler(&src, DNET_list, &Rx_Buf[0], pdu_len);
}
/* at least one second has passed */
elapsed_seconds = current_seconds - last_seconds;