Decorator for ble service added

This commit is contained in:
monster
2017-02-06 17:07:55 +03:00
parent 74a7fae754
commit a829a3dd5c
9 changed files with 287 additions and 222 deletions
+8
View File
@@ -0,0 +1,8 @@
package workers
import "github.com/currantlabs/gatt"
type Worker interface {
OnDiscovery(p gatt.Peripheral, a *gatt.Advertisement, rssi int) bool
OnConnect(p gatt.Peripheral, err error) error
}