Updated some comments, and removed extra printf from environment.
This commit is contained in:
@@ -60,6 +60,9 @@ BACNET_APDU_TIMEOUT - set this value in milliseconds to change
|
|||||||
the APDU timeout. APDU Timeout is how much time a client
|
the APDU timeout. APDU Timeout is how much time a client
|
||||||
waits for a response from a BACnet device. Default is 3000ms.
|
waits for a response from a BACnet device. Default is 3000ms.
|
||||||
|
|
||||||
|
BACNET_APDU_RETRIES - indicate the maximum number of times that
|
||||||
|
an APDU shall be retransmitted.
|
||||||
|
|
||||||
BACNET_IFACE - set this value to dotted IP address (Windows) of
|
BACNET_IFACE - set this value to dotted IP address (Windows) of
|
||||||
the interface (see ipconfig command on Windows) for which you
|
the interface (see ipconfig command on Windows) for which you
|
||||||
want to bind. On Linux, set this to the /dev interface
|
want to bind. On Linux, set this to the /dev interface
|
||||||
|
|||||||
@@ -203,6 +203,8 @@ void dlenv_maintenance_timer(
|
|||||||
* - BACNET_APDU_TIMEOUT - set this value in milliseconds to change
|
* - BACNET_APDU_TIMEOUT - set this value in milliseconds to change
|
||||||
* the APDU timeout. APDU Timeout is how much time a client
|
* the APDU timeout. APDU Timeout is how much time a client
|
||||||
* waits for a response from a BACnet device.
|
* waits for a response from a BACnet device.
|
||||||
|
* - BACNET_APDU_RETRIES - indicate the maximum number of times that
|
||||||
|
* an APDU shall be retransmitted.
|
||||||
* - BACNET_IFACE - set this value to dotted IP address (Windows) of
|
* - BACNET_IFACE - set this value to dotted IP address (Windows) of
|
||||||
* the interface (see ipconfig command on Windows) for which you
|
* the interface (see ipconfig command on Windows) for which you
|
||||||
* want to bind. On Linux, set this to the /dev interface
|
* want to bind. On Linux, set this to the /dev interface
|
||||||
@@ -284,7 +286,6 @@ void dlenv_init(
|
|||||||
pEnv = getenv("BACNET_APDU_TIMEOUT");
|
pEnv = getenv("BACNET_APDU_TIMEOUT");
|
||||||
if (pEnv) {
|
if (pEnv) {
|
||||||
apdu_timeout_set((uint16_t) strtol(pEnv, NULL, 0));
|
apdu_timeout_set((uint16_t) strtol(pEnv, NULL, 0));
|
||||||
fprintf(stderr, "BACNET_APDU_TIMEOUT=%s\r\n", pEnv);
|
|
||||||
} else {
|
} else {
|
||||||
#if defined(BACDL_MSTP)
|
#if defined(BACDL_MSTP)
|
||||||
apdu_timeout_set(60000);
|
apdu_timeout_set(60000);
|
||||||
|
|||||||
Reference in New Issue
Block a user