Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tsecoita
PostPosted: Jul 02, 2012 - 02:12 PM
Wannabe


Joined: May 22, 2012
Posts: 60


Hello,

I would like to know how to check an endpoint registration after using the function:

Code:
ZCL_RegisterEndpoint(&economizerEndpoint);


If I use the function
Code:
APS_RegisterEndpointReq(&endpoint);


it is possible to check the endpoint status:

Code:
if (APS_SUCCESS_STATUS == endpoint.status)
   {
       appSnprintf("end point registered ok\r\n");
   }
else
      appSnprintf("error\r\n");


Is there any equivalent function for ZCL_RegisterEndpoint function?

Best regards,
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Jul 02, 2012 - 10:01 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4860
Location: San Jose, CA

There is really no reason to check return status of those functions, they will always succeed. Just don't provide invalid (0, 0xff) or duplicate endpoint IDs.

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits