Hi, am just trying to make a sample project to connect to a device with few services, doesn’t matter the sketch I use, am always getting disconnected after connection but while pairing & disconnection reason is 0x3D. Not sure if it’s library issue as am using MBed_BLE_HID 1.2.0 as mentioned in the website.
Any help is much appreciated.
Security manager initialisation tested with no parameter, with bonding and MITM false etc same issue always.
Pairing result is 0x88 & disconnection reason 0x3D
uses the disconnection_reason_t to carry the code & it doesn’t define that code as part of its definition, finally HCI error traced it to MIC error code.
It’s defined in GapTypes.h as CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE=0x3D
Your code is beyond my comfort zone so no helping details from me.
One possible cause for error can be powering. Please post a wiring, not any children Fritzing.. Pen and paper often does the job.
A tip for the future: Read the first topics telling how use this forum, how to post code.
Autoformat the code in the ide, mark and select it, click on the code tag symbol </> and paste.