Hi all,
can anyone please suggest me if there is any way to retain connection for up to 10-15sec when peripheral is busy in doing some analog processing continuously disabling all interrupts?
Here are some of my connection related defined parameters
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 10
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 12 //set low value to increase the data throughput
#define DEFAULT_DESIRED_SLAVE_LATENCY 0
#define DEFAULT_DESIRED_CONN_TIMEOUT 1000
Suppose i want to record voice for about 5sec continuously but as supervision timeout has been set to 10 sec, so as expected it should not disconnect before 10sec because after 5sec i am stopping my voice recording and peripheral is available to continue its own stack process.
But what actually i am realizing is device disconnects after 2-4sec after i have started my recording.
1)Am i missing something? Is there any connection API which i can send just after my 5sec analog processing so that it can directly connect with central device and retain the connection. If needed i can store the central device MAC address.
2)I am not sure if this supervision timeout is defined for central(mobile in my case) device also?