We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1ec14 commit 28a9b0dCopy full SHA for 28a9b0d
ble/ble.go
@@ -59,9 +59,14 @@ func (k *Keyboard) Connect() error {
59
bluetooth.SetSecParamsBonding()
60
bluetooth.SetSecCapabilities(bluetooth.NoneGapIOCapability)
61
62
+ name := k.Name
63
+ if len(name) > 14 {
64
+ name = name[:14]
65
+ }
66
+
67
adv := adapter.DefaultAdvertisement()
68
adv.Configure(bluetooth.AdvertisementOptions{
- LocalName: "tinygo", //k.Name,
69
+ LocalName: name,
70
ServiceUUIDs: []bluetooth.UUID{
71
bluetooth.ServiceUUIDDeviceInformation,
72
bluetooth.ServiceUUIDBattery,
0 commit comments