Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command byte
Command indicates the command that should be executed on the board to be provisioned.
type ProvisioningProtocol ¶
type ProvisioningProtocol struct {
// contains filtered or unexported fields
}
func NewProvisioningProtocol ¶
func NewProvisioningProtocol(transport *transport.TransportInterface) *ProvisioningProtocol
func (*ProvisioningProtocol) Send ¶
Send allows to send a provisioning command to a connected arduino device.
func (*ProvisioningProtocol) SendReceive ¶
func (p *ProvisioningProtocol) SendReceive(ctx context.Context, cmd Command, payload []byte) ([]byte, error)
SendReceive allows to send a provisioning command to a connected arduino device. Then, it waits for a response from the device and, if any, returns it. If no response is received after 2 seconds, an error is returned.
Click to show internal directories.
Click to hide internal directories.