Merged revision(s) 2705 from branches/obvius/bacnet-stack:
Initialize APDU retries from environment $BACNET_APDU_RETRIES just as we initialize APDU timeout. ........
This commit is contained in:
@@ -290,6 +290,10 @@ void dlenv_init(
|
|||||||
apdu_timeout_set(60000);
|
apdu_timeout_set(60000);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
pEnv = getenv("BACNET_APDU_RETRIES");
|
||||||
|
if (pEnv) {
|
||||||
|
apdu_retries_set((uint16_t) strtol(pEnv, NULL, 0));
|
||||||
|
}
|
||||||
if (!datalink_init(getenv("BACNET_IFACE"))) {
|
if (!datalink_init(getenv("BACNET_IFACE"))) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user