TMSearch Code Example

long session_handle;
unsigned char state_buffer[15360];
short result;

/* session_handle set from a call to TMExtendedStartSession */
...

/* search for the first alarming device */
result = TMSearch(session_handle, state_buffer, 1, 1, 0xEC);

if (result == 1)
{
   /* device found */
   ...
}
else
   /* NETWORK error */