Partial android implementation, including Enable(), readyToScan(),

scan(), stopScan(), connectPeripheral(), cancelConnection(), and
DiscoverServices().
This commit is contained in:
gmp
2019-11-22 16:15:02 -05:00
parent 829baedeac
commit 86e724cc8c
12 changed files with 507 additions and 297 deletions
+5
View File
@@ -0,0 +1,5 @@
package gatt
func (s Service) IsHRM() bool {
return len(s.UUID) >= 8 && s.UUID[:8] == "0000180d"
}
+5
View File
@@ -0,0 +1,5 @@
package gatt
func (s Service) IsHRM() bool {
return s.UUID == "180D"
}