Hello,
I am using ble_app_multilink_central
example as a foundation of my app involving central - peripherial connection (S120 - S110). My app works nicely but i have problem accomplishing one thing - i need to synchronize some data between central and peripherial just after successful connection is established between them. Synchronizing routine should read certain characteristic on connected peripherial, and then conditionally write some other characteristic depending on readed value. I tried experimentally to attach this routine to the end of db_discovery_event_handler
when all of peripherial characteristics are already discovered, but i get NRF_ERROR_BUSY (?) from sd_ble_gattc_write
executed in my sync routine ( this works ok when executed later from main()
).
So the question is: to which BLE event could i attach my sync routine to execute it when central - peripherial connection is fully established and ready to begin reading/writing characteristics between central and peripherial?