Skip to content

Connecting to 3 BLE Devices to takes very long #1048

@NorbertRoller

Description

@NorbertRoller

I have to connect 3 devices and each need ~2.5 seconds for a full cycle (doConnect_Senso4s->connectToServer-Notification coming in)

I run this code for each BLE device sequential:
if(doConnect_Senso4s) // MAC+Service found {doConnect_Senso4s = false; // Für nächsten Durchlauf bereit machen if(connectToServer_Senso4s()) { debug_info("Success! we should now be getting Senso4s notifications!",1); } }

Adding the scan delay is on top.
I know that the devices are slow to connect, but I can not change this devices.

I was wondering if I could start the connectToServer simultaneously or if there is any other way to speed this up.

Many thanks for pointing me into the right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions