Controller B OTA: link_peer (STATUS to A, PAIR from the wire, AES-GCM SECURE frames), updater ported from A, console, CI workflow, shared header v2 maintenance frames; wiki + docs
Firmware / build (push) Successful in 2m57s
Firmware / build (push) Successful in 2m57s
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Serial console (Controller B) - line reader + command chain.
|
||||
*
|
||||
* Commands live in their modules (LinkPeer, Ota); this only splits lines and
|
||||
* asks each handler in turn. `help` lists them.
|
||||
*/
|
||||
|
||||
#ifndef CONSOLE_H
|
||||
#define CONSOLE_H
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
namespace Console {
|
||||
|
||||
typedef bool (*handler_t)(const char* line);
|
||||
|
||||
/** Register up to 8 handlers; each returns true if it consumed the line. */
|
||||
void addHandler(handler_t h);
|
||||
|
||||
/** Non-blocking: read whatever is pending on Serial, dispatch complete lines. */
|
||||
void tick();
|
||||
|
||||
} // namespace Console
|
||||
|
||||
#endif // CONSOLE_H
|
||||
Reference in New Issue
Block a user