I started to get reports from users who participate in beta program and have already upgraded their device to system8 that my datafield stopped working. My datafield uses ANT with GenericChannel (see code below).
I wonder if anyone managed to do whatever changes we need to do in our apps? If yes, can you share the insights?
The only information I found regarding this is from the announcement: https://forums.garmin.com/developer/connect-iq/b/news-announcements/posts/system-8-beta-now-available :
Sensor Pairing
If your device application or data field communicates wirelessly with a sensor or peripheral using ANT, ANT plus, or Bluetooth Low Energy (BLE), then you will need to implement a pairing process. Connect IQ allows you to implement a Sensors.SensorDelegate
that allows you to have your device pair as part of the device’s sensor paring UI flow. See the SensorDelegate
In my datafield I specifically ask the users not to pair or at least disconnect their ANT HR band from the device's Sensors menu, and I connect to it from the datafield using Ant.GenericChannel:
Ant.GenericChannel.initialize(method(:onMessage), new Ant.ChannelAssignment( Ant.CHANNEL_TYPE_RX_NOT_TX, // Bidirectional Receive (Slave) Ant.NETWORK_PLUS) ); var devCfg = new Ant.DeviceConfig( { :deviceNumber => 0, // Set to 0 to use wildcard search :deviceType => 0x78, // Heart Rate Sensors: 0x78 = 120 :transmissionType => 0, // Set to 0 to use wildcard search :messagePeriod => 32280, // 4Hz: 8070, 2Hz: 16140, 1Hz: 32280 :radioFrequency => 57, // ANT+ Frequency 2.457GHz :searchTimeoutLowPriority => 10, // Timeout in 25s :searchThreshold => 0} ); // Pair to all transmitting sensors GenericChannel.setDeviceConfig(devCfg); GenericChannel.open();