Skip to content

Commit 80414ef

Browse files
authored
feat: add PHY type (#424)
* feat: add PHY type Platform will now be able to implement Device.GetPHY() by returning this PHY type extracted from the platform specific types. * move phy to gap.go
1 parent 3b1ff4f commit 80414ef

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

gap.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,3 +605,14 @@ type ConnectionParams struct {
605605
// specified, the timeout will be unchanged.
606606
Timeout Duration
607607
}
608+
609+
type PHY int
610+
611+
const (
612+
// PHY1M is the 1M PHY, which is the default for Bluetooth LE.
613+
PHY1M PHY = iota
614+
// PHY2M is the 2M PHY, which allows for higher data rates but consumes more power.
615+
PHY2M
616+
// PHYCoded is the Coded PHY, which allows for longer range at the cost of lower data rates.
617+
PHYCoded
618+
)

0 commit comments

Comments
 (0)