Is there a way for my program to store and try multiple PINs? For example if I know the PINs for two devices but the PINS are different I need to store and try two PINs when the CYW20719 tries to connect to the two devices.
Yes, you can store different link_keys in your device. Please refer to the demo/hci_audio_gateway in the WICED SDK. In the hci_control.c file, keys of different device are stored to the NVRAM. Please check the event BTM_PAIRED_DEVICE_LINK_KEYS_UPDATE_EVT and BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT for details.