Hi ,How about we call it even. How so? Well I wasn't using 2 different DF, just the same one twice. Opps. But I did find a small error in your code.
Thanks for testing that you can get it working, just a bit stumped why it doesn't work on my setup.
Are you transmitting ANT to the Watch data-field from Garmin IQ simulator?
Are the data-fields 2 seperate PRG files?
If you were and it worked for you, and you are motivated enough by the eternal thanks of a stranger here the code I am using.
Can you spot the obvious mistake?
Would love to know if there has been an update to this. I don't see anything about limitations in the documentation here
https://developer.garmin.com/connect-iq/core-topics/ant-and-ant-plus/
or
https://developer.garmin.com/connect-iq/api-docs/Toybox/Ant/GenericChannel.html
or anywhere else that I've looked.
If I have two completely different data fields on a device targetting 3.1.x of the sdk or higher and each has a section of the code that looks like:
var channelAssignment = new Ant.ChannelAssignment(
Ant.CHANNEL_TYPE_RX_NOT_TX,
Ant.NETWORK_PLUS);
GenericChannel.initialize(self.method(:onMessage), channelAssignment);
var deviceConfig = new Ant.DeviceConfig({
// config info here
});
GenericChannel.setDeviceConfig(deviceConfig);
Can they both pair to the same sensor or does only the first data field that pairs work?
Thanks