Changed the demo applications to use BACNET_IFACE environment variable when configuring the datalink. Thank you to Tomas Zerolo for the patch!

This commit is contained in:
skarg
2007-09-29 14:32:15 +00:00
parent 522d9f4f7d
commit a6d1183bf6
12 changed files with 16 additions and 14 deletions
+2 -1
View File
@@ -277,7 +277,8 @@ int main(int argc, char *argv[])
Device_Set_Object_Instance_Number(BACNET_MAX_INSTANCE);
address_init();
Init_Service_Handlers();
datalink_init(Network_Interface);
if (!datalink_init(getenv("BACNET_IFACE")))
return 1;
/* configure the timeout values */
last_seconds = time(NULL);
timeout_seconds = (Device_APDU_Timeout() / 1000) *