Add functions to enable/disable debug logging (#280)

* Add "bip_debug_disable()"

* Add "bvlc_debug_disable()"

* Add setters for BIP_DL_Debug (BBMD registration debug logging)
This commit is contained in:
Ondřej Hruška
2022-05-26 04:43:08 +02:00
committed by GitHub
parent 44bd46d395
commit 0dec80fae7
10 changed files with 75 additions and 1 deletions
+8
View File
@@ -53,6 +53,14 @@ void bip_debug_enable(void)
BIP_Debug = true;
}
/**
* @brief Disalbe debug printing of BACnet/IPv4
*/
void bip_debug_disable(void)
{
BIP_Debug = false;
}
/* gets an IP address by name, where name can be a
string that is an IP address in dotted form, or
a name that is a domain name
+2
View File
@@ -102,6 +102,8 @@ extern "C" {
void bip_debug_enable(void);
void bip_debug_disable(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
+8
View File
@@ -97,6 +97,14 @@ void bip_debug_enable(void)
BIP_Debug = true;
}
/**
* @brief Disalbe debug printing of BACnet/IPv4
*/
void bip_debug_disable(void)
{
BIP_Debug = false;
}
/**
* @brief Set the BACnet IPv4 UDP port number
* @param port - IPv4 UDP port number - in host byte order
+8
View File
@@ -113,6 +113,14 @@ void bip_debug_enable(void)
BIP_Debug = true;
}
/**
* @brief Disalbe debug printing of BACnet/IPv4
*/
void bip_debug_disable(void)
{
BIP_Debug = false;
}
/**
* @brief Set the BACnet IPv4 UDP port number
* @param port - IPv4 UDP port number - in host byte order
+8
View File
@@ -106,6 +106,14 @@ void bip_debug_enable(void)
BIP_Debug = true;
}
/**
* @brief Disalbe debug printing of BACnet/IPv4
*/
void bip_debug_disable(void)
{
BIP_Debug = false;
}
/**
* @brief Get the text string for Windows Error Codes
*/