Dear Dialog_Support Team,
I am working on role switching configuration. Device is configured with extended sleep mode. Default mode of device iscentraland on button press, device switches the role toperipheral. During central mode, all operations are performed properly. But as mode is switched to peripheral and if i try to connect to the device using mobile App, it shows connecting and discover services and disconnects. Can you tell me what could be the issue?
With Regards,
俄文chi Patel
Keywords:
Device:
Hi Ruchi Patel,
Well, it would help if you provide a sniffer log or a the reason that the device reports as a disconnection reason, the fact that the central connects performs a discovery and then disconnects could be anything, this could also be a command that the central itself indicates to the peripheral device or even the peripheral itself.
Thanks MT_dialog
Dear Dialog_Support Team,
I am not able to find out the reason of disconnection. As a central, i am usingBLE扫描仪App. As a peripheral, i am using the device which has role switch(role is switched to peripheral) program.
With Regards,
俄文chi Patel
Hi Ruchi Patel,
You will be able to find the disconnection reason from your peripheral as well, you will need to "catch" the device upon disconnection in the user_app_disconnect() and check the reason of the disconnection in the reason member of the gapc_disconnect_ind structure. Also a sniffer log would help.
Thanks MT_dialog