aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-12-11 02:52:15 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-12-11 02:52:15 +0100
commitb3404a173132496fb4bc1c5cf2e467b66a44b81f (patch)
tree38c59b657130dc6b2ceec3186cf9f34d8f0e0782
parentf6a8bb0e9917cb90ff44fd3533ce3f04c5a64741 (diff)
Move UUID
-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)