The TMValidSession API call determines whether a session is still valid with the specified session handle 'session_handle'. It returns a 1 if the session is still valid, and 0 otherwise. The conditions where a session could become invalid are described in TMExtendedStartSession.
For a description of the above types, see the TMEX Type Descriptions.
Parameters
session_handle
Specifies session handle on an 1-Wire network. The session handle must be set as a result of a call to TMExtendedStartSession.
Return Value
0 => session_handle is no longer validSee Also
TMExtendedStartSession, TMEndSession