You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
ANT_Channel channel = device.getChannel(FIRST_ANT_CHANNEL); // Get channel from ANT device
channel.channelResponse += new dChannelResponseHandler(ChannelResponse); // Add channel response function to receive channel event messages
ANT_Channel secondChannel = device.getChannel(SECOND_ANT_CHANNEL); // Get channel from ANT device
secondChannel.channelResponse += new dChannelResponseHandler(ChannelResponse); // Add channel response function to receive channel event messages
static void ChannelResponse(ANT_Response response) {
ANT_Channel channel = (ANT_Channel)response.sender;
...
}