func (n *NeuroskyAdaptor) Connect() (errs []error) {
	if sp, err := n.connect(n); err != nil {
		return []error{err}
	} else {
		n.sp = sp
	}
	return
}
Connect returns true if connection to device is successful
package neurosky
import (
	"io"
	"github.com/tarm/goserial"
)
type NeuroskyAdaptor struct {
	name    string
	port    string
	sp      io.ReadWriteCloser
	connect func(*NeuroskyAdaptor) (io.ReadWriteCloser, error)
}
func NewNeuroskyAdaptor(name string, port string) *NeuroskyAdaptor {
	return &NeuroskyAdaptor{
		name: name,
		port: port,
		connect: func(n *NeuroskyAdaptor) (io.ReadWriteCloser, error) {
			return serial.OpenPort(&serial.Config{Name: n.Port(), Baud: 57600})
		},
	}
}
func (n *NeuroskyAdaptor) Name() string { return n.name }
func (n *NeuroskyAdaptor) Port() string { return n.port }