Hi,
I wanted to pair my CC2541 which contains image A with mobile. So when Application sends image it would be encrypted. I am able to do it in image B in certain services where I can send data encrypted.
I am changing permissions of OAD Image Block characteristics to " GATT_PERMIT_AUTHEN_WRITE". I have also enabled MITM and bonding with default pass code = 0.
My mobile app detects device, identifies image A and starts writing image B. It should ask for pairing first.
When I am writing into characteristics using BLE device monitor, it returns error :
ErrorRsp[FFC2]: status=0 oc=0x0012 err=5
Do I need to do anything else?
PS: Same thing works for imageB, It asks for pairing before reading data but for Image A it's not working.