Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Enhancement: Bluetooth should have a timeout function for connect #36

@kutysam

Description

@kutysam

https://docs.pycom.io/chapter/firmwareapi/pycom/network/bluetooth/

bluetooth.connect(mac_addr)
Opens a BLE connection with the device specified by the mac_addr argument. This function blocks until the connection succeeds or fails. If the connections succeeds it returns a object of type GATTCConnection.
bluetooth.connect('112233eeddff') # mac address is accepted as a string

I have tried putting in a dummy MAC address and it takes 30 seconds to timeout.

I think it will be great if we can set our own timeout.
e.g. bluetooth.connect('MAC',timeout)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions