when I add my own service and add characteristic, a odd phenomenon confuse me.
When I set cccd_md.write_perm:
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cccd_md.write_perm);
My ble device can't be bond with iphone4s But when I set it like this:
BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&cccd_md.write_perm);
bond ok.
What't the different between this two mode?
========= On the next I found this: When I use "BLE_GAP_CONN_SEC_MODE_SET_OPEN" notifcation is ok in both Android and iOS but when I change to "BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM" Android notification is not work, it will return error 8 (invalid states)
So please help me! Thanks.