Decoupled the demo handler from the demo object for ReinitializeDevice service.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "bacdef.h"
|
||||
#include "apdu.h"
|
||||
#include "bacapp.h"
|
||||
#include "rd.h"
|
||||
#include "rp.h"
|
||||
#include "rpm.h"
|
||||
#include "wp.h"
|
||||
@@ -135,6 +136,8 @@ extern "C" {
|
||||
uint16_t service_len,
|
||||
BACNET_ADDRESS * src,
|
||||
BACNET_CONFIRMED_SERVICE_DATA * service_data);
|
||||
void handler_reinitialize_device_function_set(
|
||||
reinitialize_device_function pFunction);
|
||||
|
||||
void handler_device_communication_control(
|
||||
uint8_t * service_request,
|
||||
|
||||
@@ -37,6 +37,18 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct BACnet_Reinitialize_Device_Data {
|
||||
BACNET_REINITIALIZED_STATE state;
|
||||
BACNET_CHARACTER_STRING password;
|
||||
BACNET_ERROR_CLASS error_class;
|
||||
BACNET_ERROR_CODE error_code;
|
||||
} BACNET_REINITIALIZE_DEVICE_DATA;
|
||||
|
||||
typedef bool (
|
||||
*reinitialize_device_function) (
|
||||
BACNET_REINITIALIZE_DEVICE_DATA *rd_data);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user