0 Replies Latest reply on Jul 19, 2020 9:47 AM by DeCo_1926091

    How to fix CYBLE_ERROR_INVALID_OPERATION

    DeCo_1926091

      I'm using CyBle_GapRemoveBondedDevice(clearAllDevices), where clearAllDevices

      = {{0,0,0,0,0,0},0};   Problem is that I am always getting an apiresult = 2 (CYBLE_ERROR_INVALID_OPERATION).  According to the documentation, this can result from either a pending flash write or whitelist already in use.  I've eliminated the first so it seems that it's telling me that the whitelist is already in use.  How can I get it to NOT already be  in use?

       

      One post said to call api, RemoveDeviceFromWhitelist first.  However, information from Cypress engineering says not to use this (soon to be obsolete) api since CyBle_GapRemoveBondedDevice clears both the bonded devices list and the whitelist.

       

      Thanks for any advice you can offer,

      Dennis

       

      Message was edited by: Dennis Coburn to clarify the question.