2015-06-08 03:38:19 +08:00
|
|
|
package ble
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2016-12-08 20:24:03 +08:00
|
|
|
"gobot.io/x/gobot/gobottest"
|
2015-06-08 03:38:19 +08:00
|
|
|
)
|
|
|
|
|
2016-09-26 02:14:05 +08:00
|
|
|
func initTestBLEClientAdaptor() *ClientAdaptor {
|
|
|
|
a := NewClientAdaptor("D7:99:5A:26:EC:38")
|
2015-06-08 03:38:19 +08:00
|
|
|
return a
|
|
|
|
}
|
|
|
|
|
2016-07-09 02:36:53 +08:00
|
|
|
func TestBLEClientAdaptor(t *testing.T) {
|
2016-09-26 02:14:05 +08:00
|
|
|
a := NewClientAdaptor("D7:99:5A:26:EC:38")
|
2016-07-03 17:15:42 +08:00
|
|
|
gobottest.Assert(t, a.UUID(), "D7:99:5A:26:EC:38")
|
2015-06-08 03:38:19 +08:00
|
|
|
}
|