Hi (again),
I have code that allows me to switch the source of HR/II data between the optical/registered source and an external HRM strap. This used to work prior to CIQ 3.1.8 being available on the device (fenix 6x pro).
What happens now is that going from Ext->Int is ok but switching E->I->E fails. I get 12 broadcast messages after the switch and then nothing from the external strap. At start up of the app ANT sensor is found and connected to and after 12 broadcast messages I get HR data packets.
Outline of code:
FUNC Initialise ANT sensor:
- Get channel
- Initialise channel
- Set channel config
- open channel
FUNC Stop ANT sensor:
- close then release
FUNC Switch sensor:
- Stop current sensor
- set sensor variable to null
- initialise new sensor (sensor = new AntHandler(...))
I check for null states on various variables to ensure stops valid etc.
Any ideas welcome.
Regards, David