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
+1 -1
View File
@@ -186,7 +186,7 @@ int main(int argc, char *argv[])
Device_Set_Object_Instance_Number(BACNET_MAX_INSTANCE);
address_init();
Init_Service_Handlers();
if (!datalink_init(NULL))
if (!datalink_init(getenv("BACNET_IFACE")))
return 1;
/* configure the timeout values */
last_seconds = time(NULL);