I'm using the nordic android scanner and ble libraries for my BLE implementation. I was hoping that using these libraries would handle some of the issues I'm running into with my current implementation, but I'm still seeing some inconsistencies as it relates to multiple centrals attempting to connect and write to a peripheral device.
For my peripheral I'm using a Laird BL654 dongle which is built on the Nordic nRF52840 chipset. This is also running a smartBASIC script instead of the Nordick SDK. When connecting with 1 central android device, I'm not seeing any issues. Everything runs smoothly, write and notify characteristics are working perfectly. The issue is when there are other centrals added to the equation.
For example, say I push a button on my ionic application (both iOS and android devices) that fires a method which attempts to connect and write to the peripheral at the same time. I sometimes get a result where a persisting connection stays open with my Android device. This causes breaking issues because it essentially leaves that peripheral in a persisting connected state that we can't get out of without restarting our peripheral device or unplugging the dongle. Both of these scenarios will cause severe issues when this is deployed to production.
Has anyone experienced issues like this?