Figure: QSH client API workflow
-
getSession(): To interact with the QSH, the sensor application client must create an interface session by invoking thegetSession()API. Successful creation of the interface session returns anISession*object to the client. -
open(),close(),setCallback(), andsendRequest(): The interface thatgetSession()API creates operates on a once_per_session basis. This interface allows the client application to use the QSH client APIs, such asopen(),close(),setCallback(), andsendRequest(), until the session is explicitly deleted using theclose()anddelete()APIs. After the interface session establishes, the client application or the client code can open a sensor session by calling theopen()API. Similar togetSession(), theopen()API is also invoked on a once_per_session basis. ThesetCallback()andsendRequest()APIs are invoked once for a specified SUID.

