+ if (_bt_get_energy_info(&tx_time, &rx_time,
+ &idle_time, &energy_used) != BLUETOOTH_ERROR_NONE) {
+ BT_ERR("Fail to get energy info");
+ return BLUETOOTH_ERROR_NOT_SUPPORT;
+ }
+
+ data->tx_time = tx_time;
+ data->rx_time = rx_time;
+ data->idle_time = idle_time;
+