Stop a Session
The device can stop a session by calling the Update Usage Session API.
To call the Update Usage Session API, the device needs to set the following fields:
_endTime
- Define end time of the session_summary._state
- Set toDONE
_summary._stopReason
- Define the string as needed_stopReasonCode
- Set asCOMPLETION
orGENERAL_DEVICE_ERROR
.
For Example:
{
"_endTime": "2022-07-28T14:02:26.199Z",
"_state": "DONE",
"_summary": {
"_stopReason": "Manual Stop",
"_stopReasonCode": "COMPLETION"
}
}
Updated about 1 year ago