Added unrecognized service handler to ports demos.

This commit is contained in:
skarg
2009-10-07 21:46:36 +00:00
parent 3895863bba
commit 1c82dda7d6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -142,6 +142,8 @@ static inline void bacnet_init(
dlmstp_init(NULL);
#endif
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 */
apdu_set_unconfirmed_handler(SERVICE_UNCONFIRMED_WHO_IS, handler_who_is);
/* Set the handlers for any confirmed services that we support. */
+2
View File
@@ -97,6 +97,8 @@ static void bacnet_init(
Binary_Input_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 */
apdu_set_unconfirmed_handler(SERVICE_UNCONFIRMED_WHO_IS, handler_who_is);
/* Set the handlers for any confirmed services that we support. */