2015-06-07 12:38:19 -07:00
|
|
|
package ble
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2016-07-03 11:15:42 +02:00
|
|
|
"github.com/hybridgroup/gobot/gobottest"
|
2015-06-07 12:38:19 -07:00
|
|
|
)
|
|
|
|
|
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
|
|
|
}
|