Hello everyone,
I am currently busy with setting up control for some LEDs using multiple arduino nano 33 IOT devices. I currently have setup a peripheral which works fine when one central device (smartphone or arduino) is connected, however I have some trouble when multiple are connecting. There seems to be a problem with the event handler function for a BLEDisconnected not being called and the peripheral device therefore not advertising after a disconnect.
I am however unsure what causes this problem. Is anyone able to help?
ledperipheral.ino (4.64 KB)
Central.ino (4.05 KB)