92 static void executeCommand(
char* cmd);
93 static char* trim(
char* str);
98 enum class HistoryDirection : uint8_t { OLDER, NEWER };
104 static void handleHistoryNav(HistoryDirection dir);
111 static bool handleEscape(
int c);
118 static void handleSpecialChar(
int c,
bool& commandReady);
static bool isAuthenticated()
Returns whether the serial session is currently authenticated.
static void registerBuiltinCommands()
Registers all built-in serial commands.
static void init()
Public SerialCmd interface implementation.
static bool process()
Processes one pending input character from the serial console.
static ICommandRegistry & getRegistry()
Returns the shared command registry instance.
static void logout()
Logs out the current serial session.
static void setTextCallback(TextChangeCallback callback)
Sets the callback used by text-setting commands.
static bool authenticate(const char *pin)
Attempts to authenticate the serial session with a PIN.
static void setTimeCallback(TimeChangeCallback callback)
Sets the callback invoked after successful date/time updates.
static constexpr uint32_t AUTH_TIMEOUT_MS
static constexpr size_t CMD_BUFFER_SIZE
static void touchAuthSession()
Keeps the auth session alive during a long-running serial activity.
void(*)() TimeChangeCallback
void(*)(const char *field, const char *value) TextChangeCallback