Send Call Duration to Firmware
Flutter Example:
/// Event number for sending call duration to firmware after call connection is established
setNoticeCallTime(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_notice_call_time),
/// Send call duration to firmware after call connection is established
libManager.send(evt: CmdEvtType.setNoticeCallTime, json: jsonEncode(json));
JSON fields sent by the app:
Field Name | Field Type | Field Description |
---|---|---|
sec | int | Call duration in seconds |
Example:
{
"sec": 30
}
JSON fields received by the app:
Field Name | Field Type | Field Description |
---|---|---|
status_code | int | 0: Success 1: Failure, incorrect parameters |
Example:
{
"status_code": 0
}