refactoring into multiple files, not tested on hardware

This commit is contained in:
Adolfo Reyna
2025-12-09 18:41:03 -05:00
parent bc0e082b89
commit 47956bf64c
8 changed files with 552 additions and 439 deletions

18
command_processor.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef COMMAND_PROCESSOR_H
#define COMMAND_PROCESSOR_H
enum CommandAction {
CMD_NONE,
CMD_REFRESH,
CMD_CLEAR,
CMD_WIFI,
CMD_UNKNOWN
};
/**
* Parses a string to check if it is a command.
* Returns the corresponding CommandAction.
*/
CommandAction parse_command(const char* input);
#endif // COMMAND_PROCESSOR_H