Added device WriteProperty callbacks for Timer object in example device objects implementations. (#1203)

This commit is contained in:
Steve Karg
2026-01-15 10:15:22 -06:00
committed by GitHub
parent 8aabe883e9
commit 21daea9eb4
3 changed files with 20 additions and 9 deletions
+5
View File
@@ -2919,6 +2919,7 @@ void Device_Init(object_functions_t *object_table)
characterstring_init_ansi(&My_Object_Name, Device_Name_Default);
#if (BACNET_PROTOCOL_REVISION >= 14)
#ifdef CONFIG_BACNET_BASIC_OBJECT_CHANNEL
/* link WriteProperty to Channel object for references */
Channel_Write_Property_Internal_Callback_Set(Device_Write_Property);
#endif
#endif
@@ -2927,6 +2928,10 @@ void Device_Init(object_functions_t *object_table)
Loop_Read_Property_Internal_Callback_Set(Device_Read_Property);
Loop_Write_Property_Internal_Callback_Set(Device_Write_Property);
#endif
#ifdef CONFIG_BACNET_BASIC_OBJECT_TIMER
/* link WriteProperty to Timer object for references */
Timer_Write_Property_Internal_Callback_Set(Device_Write_Property);
#endif
}
bool DeviceGetRRInfo(