I would like to use Garmin Bluetooth Accessories, such as the Garmin GLO in my .Net Maui app. I have paired the Garmin GLO with the iPhone, and am now trying to connect to it through the ExternalAccessories in iOS code. Note, that I am not using the IQ Connect SDK, but rather would like to read the NMEA strings directly from the device. The code to connect to the bluetooth device is below in (c#):
EAAccessoryManager.SharedAccessoryManager.ShowBluetoothAccessoryPicker(null, (Foundation.NSError error) => { Console.WriteLine("My callback"); if (error != null && (uint)error.Code != (uint)EABluetoothAccessoryPickerError.AlreadyConnected) { Console.WriteLine(String.Format("Error code: {0} Desc: {1}", error.Code, error.DebugDescription)); Console.WriteLine("Failed? " + EABluetoothAccessoryPickerError.Failed.ToString()); Console.WriteLine("Failed? " + Convert.ToInt64(EABluetoothAccessoryPickerError.Failed)); } else Console.WriteLine("Successfully connected to Bluetooth device."); });
This returns with an Error Code 1. From a quick internet search, this means that I need a required MFI protocol for the device in the Info.plist which looks like this:
<key>UISupportedExternalAccessoryProtocols</key>
<array>
<string>YOUR_DEVICE_PROTOCOL</string>
</array>
Can anyone help provide me the MFI protocol that iOS apps would need to connect to this device?