3 Replies Latest reply on Oct 6, 2014 4:30 PM by userc_7975

    disconnect recipe (from central) when multiple peripherals are connected

      Is there a way to force a specific peripheral to disconnect from a central device when multiple peripherals are connected to a central device?


      There seems only to be blecm_disconnect(BT_ERROR_CODE_CONNECTION_TERMINATED_BY_LOCAL_HOST), but how is the peripheral specified? I have tried using emconinfo_setConnHandle(), and this seems to work sometime but other times emconinfo starts returning bogus data for the other peripherals.


      Can you provide some pseudo-code to show how this "should" be done?


      Many thanks