} bt_map_client_message_s;
typedef struct {
- time_t session_start_time;
- time_t session_end_time;
- uint16_t session_connected_time;
- uint16_t session_scan_time;
- GSList *atm_list;
+ time_t session_start_time;
+ time_t session_end_time;
+ uint32_t tx_time;
+ uint32_t rx_time;
+ uint32_t idle_time;
+ uint16_t session_connected_time;
+ uint16_t session_scan_time;
+ GSList *atm_list;
} bt_battery_info_s;
typedef struct {
BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code),
error_code); /* LCOV_EXCL_LINE */
return error_code;
- } /* LCOV_EXCL_LINE */
+ } /* LCOV_EXCL_LINE */
battery_data->session_start_time = data.session_start_time;
battery_data->session_end_time = data.session_end_time;
battery_data->session_scan_time = data.session_scan_time;
battery_data->session_connected_time = data.session_connected_time;
+ battery_data->tx_time = data.tx_time;
+ battery_data->rx_time = data.rx_time;
+ battery_data->idle_time = data.idle_time;
battery_data->atm_list = data.atm_list;
BT_DBG("Battery Data in application layer: %ld %ld %d %d",
bt_battery_app_info_s *t = (bt_battery_app_info_s *)(l->data);
BT_DBG("%ld %ld %d %d %u", (long int)(t->uid), (long int)(t->pid), t->rx_bytes, t->tx_bytes, t->time);
}
- return error_code;
+
+ return error_code;
}
int bt_adapter_disable(void)
} else {
TC_PRT("Battery data: %ld %ld %d %d", battery_data.session_start_time,
battery_data.session_end_time, battery_data.session_scan_time, battery_data.session_connected_time);
+
+ TC_PRT("Tx time [%d], Rx time [%d], Idle time [%d]", battery_data.tx_time,
+ battery_data.rx_time, battery_data.idle_time);
+
if(battery_data.atm_list == NULL) {
TC_PRT("No data transaction in this session");
break;