adding the data transfer commands

This commit is contained in:
2026-03-06 00:04:17 +00:00
parent 91402af140
commit 0544703dc6
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ typedef enum : uint8_t {
CmdCreateWindow = 3,
CmdDestroyWindow = 4,
CmdUpdateWinDims = 5, // NOTE: change this to a move cmd instead
CmdUpdateWin = 6
CmdUpdateWin = 6,
CMDData = 7,
} Command;
char* CommandToStr(Command id);
+9
View File
@@ -160,6 +160,15 @@ void loop(void) {
break;
}
case CMDData: {
// Data groups of: windowData {
// idx int16 4 bytes
// data char* 32 bytes
// }
// Packet will be: Data {
// [windowData]
// }
}
default:
LOG_WARN(F("Command: `%s` has not been implemented yet."), CommandToStr(cmd));
}