Serve starts without a required port; REST/WS/UI can scan and switch transports, with BLE live ticks and UART-only OTA. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
447 B
Go
13 lines
447 B
Go
package main
|
|
|
|
import "errors"
|
|
|
|
// errUARTBusy is returned when the port is held for OTA (poller should not treat as unplug).
|
|
var errUARTBusy = errors.New("uart busy (OTA in progress)")
|
|
|
|
// errOTAInProgress is returned when a second OTA upload is attempted while one is running.
|
|
var errOTAInProgress = errors.New("OTA upload already in progress")
|
|
|
|
// managedSerial is an alias for managedHost (UART-first history).
|
|
type managedSerial = managedHost
|