Peripheral.Identifier is now a field, not a method.

This commit is contained in:
Greg 2019-10-24 09:00:13 -04:00
parent c60519182a
commit 7fa3860f6c

View File

@ -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: