aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advertisement.go2
-rw-r--r--uuid.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/advertisement.go b/advertisement.go
index 363b28f..443ae1d 100644
--- a/advertisement.go
+++ b/advertisement.go
@@ -32,8 +32,6 @@ type VehicleAdvMfg struct {
ProductID uint16
}
-type UUID [16]byte
-
type VehicleAdv struct {
Flags uint8
TXPower uint8
diff --git a/uuid.go b/uuid.go
index a70e995..74fbb39 100644
--- a/uuid.go
+++ b/uuid.go
@@ -6,6 +6,8 @@ import (
"strings"
)
+type UUID [16]byte
+
func ParseUUID(s string) (UUID, error) {
s = strings.Replace(s, "-", "", -1)
x, err := hex.DecodeString(s)