Removed the Who-Is wildcard since it is not permitted per BACnet standard. Thank you Michael and Carl!

This commit is contained in:
skarg
2015-10-16 19:29:03 +00:00
parent 73190ed0c4
commit 49c52d5407
3 changed files with 11 additions and 33 deletions
+1 -5
View File
@@ -84,11 +84,7 @@ void handler_who_is(uint8_t * service_request,
} else if (len != -1) {
/* is my device id within the limits? */
target_device = Device_Object_Instance_Number();
if (((target_device >= low_limit) && (target_device <= high_limit))
||
/* BACnet wildcard is the max instance number - everyone responds */
((BACNET_MAX_INSTANCE >= (uint32_t) low_limit) &&
(BACNET_MAX_INSTANCE <= (uint32_t) high_limit))) {
if (((target_device >= low_limit) && (target_device <= high_limit)) {
sendIamUnicast(&Handler_Transmit_Buffer[0], src);
}
}
+1 -5
View File
@@ -58,11 +58,7 @@ void handler_who_is(
} else if (len != BACNET_STATUS_ERROR) {
/* is my device id within the limits? */
target_device = Device_Object_Instance_Number();
if (((target_device >= low_limit) && (target_device <= high_limit))
||
/* BACnet wildcard is the max instance number - everyone responds */
((BACNET_MAX_INSTANCE >= (uint32_t) low_limit) &&
(BACNET_MAX_INSTANCE <= (uint32_t) high_limit))) {
if (((target_device >= low_limit) && (target_device <= high_limit)) {
Send_I_Am_Flag = true;
}
}