CIQ 3.0.8
FR935 (12.20)
Description of Problem
The documentation for DeviceSettings::ConnectionInfo would seem to suggest that a CIQ 3 app (e.g. watchface) would be able to determine whether bluetooth is disabled. This does not seem to be the case, in reality.
https://developer.garmin.com/downloa...ctionInfo.html
state -> Toybox::Lang::Number
The state of the connection.
Returns: (Toybox::Lang::Number) — A CONNECTION_STATE_* value
https://developer.garmin.com/downloa...ox/System.html
CONNECTION_STATE_NOT_INITIALIZED = 0
Indicates that the connection is not setup or is inactive.
CONNECTION_STATE_NOT_CONNECTED = 1
Indicates that the connection has been setup but is not in range.
CONNECTION_STATE_CONNECTED = 2
Indicates that the connection is available for use.
Based on the sentence "Indicates connection is not setup or is inactive", I assumed that if I disabled bluetooth on my device (935), a CIQ app would be able to query the bluetooth connection state and receive a value of CONNECTION_STATE_NOT_INITIALIZED. I based the assumption on the fact that if Bluetooth is disabled, then the Bluetooth connection would necessarily be inactive.
In reality, when bluetooth is disabled (e.g. through controls menu), it seems that a value of CONNECTION_STATE_NOT_CONNECTED is returned. (To be clear, my 935 is already paired with a phone.)
If it's in fact the case that CONNECTION_STATE_NOT_INITIALIZED really refers to a connection that was not setup (and nothing else), perhaps the documentation could be amended as follows (for example).
CONNECTION_STATE_NOT_INITIALIZED = 0
Indicates that the connection is not setup. e.g. For Bluetooth: device not paired with phone.
CONNECTION_STATE_NOT_CONNECTED = 1
Indicates that the connection has been setup but is disabled or is not in range. e.g. For Bluetooth: Bluetooth disabled, phone not in range, or Garmin Connect app not open on phone.
CONNECTION_STATE_CONNECTED = 2
Indicates that the connection is available for use. e.g. For Bluetooth: connection established with Garmin Connect app on phone.