adding the data transfer commands
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user