Expose the Full Companion terminal over TCP and add an authenticated, replay-resistant host command service with documented CPU temperature, reboot, and allowlisted program examples.\n\nImprove LoRa OTA diagnostics and persistent CLI handling, reduce clock correction drift to ten minutes, and make mOTA stream flush behavior an explicit transport policy with regression coverage.
20 lines
509 B
C++
20 lines
509 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace mesh {
|
|
namespace ota {
|
|
|
|
// Stream::flush() does not have consistent semantics across Arduino transports.
|
|
// Hardware serial implementations wait for queued TX bytes, while ESP32
|
|
// WiFiClient and nRF52 BLEUart discard queued RX bytes. Require every mOTA
|
|
// stream caller to choose explicitly so a new transport cannot inherit an
|
|
// unsafe default.
|
|
enum class MotaStreamWritePolicy : uint8_t {
|
|
FlushTransmit,
|
|
NoFlush,
|
|
};
|
|
|
|
} // namespace ota
|
|
} // namespace mesh
|