blatann.gap.gap_types module

class blatann.gap.gap_types.Phy(value)

Bases: IntFlag

The supported PHYs

Note

Coded PHY is currently not supported (hardware limitation)

auto = 0

Automatically select the PHY based on what’s supported

one_mbps = 1

1 Mbps PHY

two_mbps = 2

2 Mbps PHY

class blatann.gap.gap_types.PeerAddress(addr_type, addr)

Bases: BLEGapAddr

class blatann.gap.gap_types.ConnectionParameters(min_conn_interval_ms, max_conn_interval_ms, timeout_ms, slave_latency=0)

Bases: BLEGapConnParams

Represents the connection parameters that are sent during negotiation. This includes the preferred min/max interval range, timeout, and slave latency

class blatann.gap.gap_types.ActiveConnectionParameters(conn_params)

Bases: object

Represents the connection parameters that are currently in use with a peer device. This is similar to ConnectionParameters with the sole difference being the connection interval is not a min/max range but a single number

property interval_ms: float

Read Only

The connection interval, in milliseconds

property timeout_ms: float

Read Only

The connection timeout, in milliseconds

property slave_latency: int

Read Only

The slave latency (the number of connection intervals the slave is allowed to skip before being required to respond)