Added ability to set starting invoke id from environment variable BACNET_INVOKE_ID

This commit is contained in:
brayra
2010-04-27 15:11:58 +00:00
parent 1c8a58f158
commit 37d048310c
3 changed files with 28 additions and 9 deletions
+6
View File
@@ -34,6 +34,7 @@
#include "datalink.h"
#include "handlers.h"
#include "client.h"
#include "tsm.h"
/** @file dlenv.c Initialize the DataLink configuration. */
@@ -131,6 +132,11 @@ void dlenv_init(
if (!datalink_init(getenv("BACNET_IFACE"))) {
exit(1);
}
pEnv = getenv("BACNET_INVOKE_ID");
if (pEnv) {
tsm_invokeID_set((uint8_t)strtol(pEnv, NULL, 0));
}
#if defined(BACDL_BIP) && BBMD_ENABLED
pEnv = getenv("BACNET_BBMD_PORT");
if (pEnv) {