Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serial ¶
type Serial struct {
// contains filtered or unexported fields
}
Serial is a wrapper of serial port interface that features specific functions to send provisioning commands through the serial port to an arduino device.
func NewSerial ¶
func NewSerial() *Serial
NewSerial instantiate and returns a Serial instance. The Serial Connect method should be called before using its send/receive functions.
func (*Serial) Close ¶
Close should be used when the Serial connection isn't used anymore. After that, Serial could Connect again to any port.
func (*Serial) Connect ¶
func (s *Serial) Connect(params transport.TransportInterfaceParams) error
Connect tries to connect Serial to a specific serial port.
func (*Serial) Type ¶
func (s *Serial) Type() transport.InterfaceType
Click to show internal directories.
Click to hide internal directories.