Converted device object test to use common read-write property test. Extended the basic BACnet device object example API. (#1106)

* Converted device object test to use common read-write property test. Extended the basic BACnet device object example API.

* Created BACnet/IP and COV test mocks to enable device object testing with less dependencies.
This commit is contained in:
Steve Karg
2025-09-24 07:09:56 -05:00
committed by GitHub
parent f877ca0ebb
commit b357bca5dd
10 changed files with 1570 additions and 361 deletions
+28
View File
@@ -9,6 +9,34 @@
#include <zephyr/ztest.h>
#include <bacnet/basic/service/h_apdu.h>
bool apdu_service_supported(BACNET_SERVICES_SUPPORTED service_supported)
{
(void)service_supported;
return true;
}
static uint16_t Timeout_Milliseconds = 1000;
uint16_t apdu_timeout(void)
{
return Timeout_Milliseconds;
}
void apdu_timeout_set(uint16_t milliseconds)
{
Timeout_Milliseconds = milliseconds;
}
static uint8_t Number_Of_Retries = 3;
uint8_t apdu_retries(void)
{
return Number_Of_Retries;
}
void apdu_retries_set(uint8_t value)
{
Number_Of_Retries = value;
}
uint16_t apdu_decode_confirmed_service_request(
uint8_t *apdu,
uint16_t apdu_len,