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