Added unrecognized service handler to ports demos.
This commit is contained in:
@@ -142,6 +142,8 @@ static inline void bacnet_init(
|
|||||||
dlmstp_init(NULL);
|
dlmstp_init(NULL);
|
||||||
#endif
|
#endif
|
||||||
Device_Set_Object_Instance_Number(22222);
|
Device_Set_Object_Instance_Number(22222);
|
||||||
|
/* set up our confirmed service unrecognized service handler - required! */
|
||||||
|
apdu_set_unrecognized_service_handler_handler(handler_unrecognized_service);
|
||||||
/* we need to handle who-is to support dynamic device binding */
|
/* we need to handle who-is to support dynamic device binding */
|
||||||
apdu_set_unconfirmed_handler(SERVICE_UNCONFIRMED_WHO_IS, handler_who_is);
|
apdu_set_unconfirmed_handler(SERVICE_UNCONFIRMED_WHO_IS, handler_who_is);
|
||||||
/* Set the handlers for any confirmed services that we support. */
|
/* Set the handlers for any confirmed services that we support. */
|
||||||
|
|||||||
@@ -97,6 +97,8 @@ static void bacnet_init(
|
|||||||
Binary_Input_Init();
|
Binary_Input_Init();
|
||||||
Analog_Value_Init();
|
Analog_Value_Init();
|
||||||
|
|
||||||
|
/* set up our confirmed service unrecognized service handler - required! */
|
||||||
|
apdu_set_unrecognized_service_handler_handler(handler_unrecognized_service);
|
||||||
/* we need to handle who-is to support dynamic device binding */
|
/* we need to handle who-is to support dynamic device binding */
|
||||||
apdu_set_unconfirmed_handler(SERVICE_UNCONFIRMED_WHO_IS, handler_who_is);
|
apdu_set_unconfirmed_handler(SERVICE_UNCONFIRMED_WHO_IS, handler_who_is);
|
||||||
/* Set the handlers for any confirmed services that we support. */
|
/* Set the handlers for any confirmed services that we support. */
|
||||||
|
|||||||
Reference in New Issue
Block a user