You are here: Forum Home → ANT Developers Forums → ANT in Mobile Phones → Thread
private static final int CHANNEL_PROOF_DEVICE_TYPE = 0x78;
private static final int CHANNEL_PROOF_TRANSMISSION_TYPE = 0;
private static final int CHANNEL_PROOF_PERIOD = 8070; // 1 Hz
private static final int CHANNEL_PROOF_FREQUENCY = 57;
channelId = new ChannelId(0,
CHANNEL_PROOF_DEVICE_TYPE, CHANNEL_PROOF_TRANSMISSION_TYPE,true);
try
{
mAntChannel.setChannelEventHandler(mChannelEventCallback);
mAntChannel.assign(channelType);
mAntChannel.setChannelId(channelId);
mAntChannel.setPeriod(CHANNEL_PROOF_PERIOD);
mAntChannel.setRfFrequency(CHANNEL_PROOF_FREQUENCY);
//mAntChannel.setPeriod(8070);
//mAntChannel.setRfFrequency(57);
mAntChannel.open();
mIsOpen = true;