ios - Uniquely identify MFI Licensed accessory using EAAccessory -
i have mfi licensed accessory, connecting using eaaccessory manager
. not able uniquely identify accessory.
eaaccessory class provides connectionid
per documentation.
the connection id accessory persists duration of current connection. if accessory disconnected , reconnected, new connection id assigned.
apple website link documentation
i want can persist , use make decision (in case multiple devices of same type connected).
something if last time connection successful, use device or try other device. read somewhere hardware should provide info in property serialnumber
but not possible currently, on other platforms using mac address uniquely identify. apple doesn't expose mac address per official documentation. , don't want risk app getting rejected using
nsstring *macaddress = [accessory valueforkey:@"macaddress"];
which has been suggested in many stackoverflow questions.
please correct me if assumption of app getting rejected wrong.
device classic bluetooth device.
Comments
Post a Comment