Other Parts Discussed in Thread: CC2541, CC2640
Hi,
I am working with a cc2541 running as a peripheral.
I have a piece of code that causes the ble stack to drop connections once it runs. Once the connection has been dropped I cannot reconnect to the device without power cycling, although it still advertises.
I assume the dropped connection is because my code is taking too long and blocking the ble stack from maintaining the connection.
My questions are:
- Is there some way I can run my code while maintaining a connection?
- Why can the device not be connected to after dropping the connection and is it possible to reconnect without power cycling?
It might be worth mentioning that the code also prevents any connections once it runs during advertising. I managed to work around that by turning advertising off before my code and turning it back on afterwards.
Any advice would be appreciated.
Thanks,
Daniel