Working Android implementation.

This commit is contained in:
gmp
2019-11-27 10:44:37 -05:00
parent 99bcd1f4fb
commit 321b94a486
9 changed files with 225 additions and 65 deletions
+4
View File
@@ -3,3 +3,7 @@ package gatt
func (s Service) IsHRM() bool {
return len(s.UUID) >= 8 && s.UUID[:8] == "0000180d"
}
func (c Characteristic) IsHRV() bool {
return len(c.UUID) >= 0 && c.UUID[:8] == "00002a37"
}
+4
View File
@@ -3,3 +3,7 @@ package gatt
func (s Service) IsHRM() bool {
return s.UUID == "180D"
}
func (c Characteristic) IsHRV() bool {
return c.UUID == "2A37"
}