I have an issue when using the Bean with iOS and the BeanManager SDK.
I can scan, detect and ask to connect to Beans around. Those Beans are featuring iBeacon + HID.
As it is HID-enabled, when trying to connect to the Bean, iOS asks the user to allow pairing, this is a normal behavior.
Once successfully paired, the beanManager.didConnectBean is called, and the Bean passed as parameter. This is what happens in a perfect world.
But, when the user does not allow to pair the Bean, either by waiting for the alertview to dismiss by itself or by touching the Cancel button... The Bean connects automatically in BTLE profile (but not the HID) and I still receive the beanManager.didConnectBean... although it is not connected the way I want
Do you have any idea about filtering the way the Bean was connected / avoid some types of connection or anything else?
EDIT: this might have something to do with
- (void)connectToBean:(PTDBean *)bean withOptions:(NSDictionary *)options error:(NSError **)error
But I don't know what should be put in the options?
//Default functionality. Can be overridden with the options parameter in [PTDBeanManager connectToBean:withOptions:error:]
[self setProfilesRequiredToConnect:@[[BatteryProfile class],
But sadly no "HIDProfile class" ?