provisionclient

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package provisionclient implements the host side of physical USB provisioning.

Index

Constants

This section is empty.

Variables

View Source
var ErrConfiguration = errors.New("provision client: invalid configuration")
View Source
var ErrResponseSync = errors.New("provision client: correlated response missing within stream budget")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(stream io.ReadWriter) (*Client, error)

func NewCorrelated

func NewCorrelated(stream io.ReadWriter) (*Client, error)

NewCorrelated creates an ESP32 v3 client. The transport must bound each Read; the serial CLI uses 500ms polls. There is no legacy fallback or mutation retry.

func NewFor

func NewFor(stream io.ReadWriter, codec provision.Codec) (*Client, error)

func (*Client) Codec

func (c *Client) Codec() provision.Codec

Codec retains the Pico default for offline request preparation without a client.

func (*Client) Execute

func (c *Client) Execute(request provision.Request) (provision.Response, error)

type RemoteError

type RemoteError struct{ Code provision.Code }

RemoteError reports an acknowledged operation failure. Inspect the returned response State before deciding what to do; a failed write may have committed.

func (*RemoteError) Error

func (e *RemoteError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL