2015-06-08 03:38:19 +08:00
|
|
|
package ble
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2016-12-28 02:44:07 +08:00
|
|
|
"gobot.io/x/gobot"
|
2016-12-08 20:24:03 +08:00
|
|
|
"gobot.io/x/gobot/gobottest"
|
2015-06-08 03:38:19 +08:00
|
|
|
)
|
|
|
|
|
2016-12-28 02:44:07 +08:00
|
|
|
var _ gobot.Adaptor = (*ClientAdaptor)(nil)
|
|
|
|
|
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-12-29 00:53:41 +08:00
|
|
|
gobottest.Assert(t, a.Address(), "D7:99:5A:26:EC:38")
|
2015-06-08 03:38:19 +08:00
|
|
|
}
|