Peripheral.Identifier is now a field, not a method.
This commit is contained in:
parent
c60519182a
commit
7fa3860f6c
4
main.go
4
main.go
|
@ -145,12 +145,12 @@ func eventloop() {
|
|||
case ble.UpdateStateEvent:
|
||||
state = e.State
|
||||
case ble.DiscoverEvent:
|
||||
fmt.Printf("found %s\n", e.Peripheral.Identifier())
|
||||
fmt.Printf("found %s\n", e.Peripheral.Identifier)
|
||||
periphs = append(periphs, e.Peripheral)
|
||||
//btns = append(btns, th.Button(e.Peripheral.Name))
|
||||
btns = append(btns, &widget.Button{})
|
||||
fmt.Printf("len(periphs) = %d\n", len(periphs))
|
||||
if e.Peripheral.Identifier() == autoconnectID {
|
||||
if e.Peripheral.Identifier == autoconnectID {
|
||||
b.Connect(e.Peripheral)
|
||||
}
|
||||
case ble.ConnectEvent:
|
||||
|
|
Loading…
Reference in New Issue
Block a user