API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ISENSORUTIL_ITERNEXTERRORCODE()

Brew Release
Brew MP 1.0.2
See Also
ISensorUtil_IterCreate
Description
Returns the error code associated with the response message.
Params
_me
[in]:
Pointer to ISensorUtil interface
iter
[in]:
iterator object to be used for this operation.
nErrorVal
[out]:
Error code in the response message.
Interface
Prototype
  • AEEResult ISensorUtil_IterNextErrorCode(ISensorUtil* _me, ISensorUtil_iterator iter, int32* nErrorVal)
    
Return

  • AEE_SUCCESS: if the response can be parsed for error code. AEE_EINVALIDFORMAT : if the response message in the iterator is invalid. AEE_EFAILED: Otherwise
Side Effect
  • None
Comments
Example code: { // Assume pResponseStr has the message // "error=0#accelx=-198,accely=1008,accelz=176#get,accelx,accely,accelz" // myIter is the iterator having the pResponseStr ISensorUtil_iterator myIter; int nErrorVal; ISensorUtil_GetErrorInResponse(me, myIter, &nErrorVal) // When the function returns, the nErrorVal has the error code in the response message. }