Hi all,
I am using ANT+ SDK to record data from several powermeters on a Android app. Near everything is working fine, but I have some issues. First, it seems I receive no information about the battery status. The code is from the ANT+ plugin sampler (see below). I should add there is nothing printed also with the ANT+ Plugin Sampler app about battery status.
Other testimonies from this with a PowerTap powermeter (I have a SL+ model) ? Which powermeter is sending info about battery ?
Thanks,
Pierre
// Battery
BikePowerPcc.subscribeBatteryStatusEvent(
new AntPlusCommonPcc.IBatteryStatusReceiver()
{
@Override
public void onNewBatteryStatus(final long estTimestamp,
EnumSet<EventFlag> eventFlags, final long cumulativeOperatingTime,
final BigDecimal batteryVoltage, final BatteryStatus batteryStatus,
final int cumulativeOperatingTimeResolution, final int numberOfBatteries,
final int batteryIdentifier)
{
MyActivity.runOnUiThread(
new Runnable()
{
@Override
public void run()
{
BatteryVoltage = String.valueOf(batteryVoltage);
BatteryStatus = batteryStatus.toString();
}
});
}
});