1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-09 12:03:41 +00:00

Added MeshCommand_CoreOk.

This commit is contained in:
Ylian Saint-Hilaire
2019-01-17 15:06:16 -08:00
parent 73eb954a57
commit 12f8dc4509
2 changed files with 8 additions and 1 deletions

View File

@@ -2345,6 +2345,12 @@ void MeshServer_ProcessCommand(ILibWebClient_StateObject WebStateObject, MeshAge
break;
}
case MeshCommand_CoreOk: // Message from the server indicating our meshcore is ok. No update needed.
{
// TODO: Start the core if we have not done it already.
//printf("CORE OK\r\n");
break;
}
case MeshCommand_AgentHash:
{
if (agent->disableUpdate != 0) { break; }

View File

@@ -106,7 +106,8 @@ typedef enum MeshCommands_Binary
MeshCommand_AgentHash = 12, // Request/return the SHA384 hash of the agent executable
MeshCommand_AgentUpdate = 13, // Indicate the start and end of the mesh agent binary transfer
MeshCommand_AgentUpdateBlock = 14, // Part of the mesh agent sent from the server to the agent, confirmation/flowcontrol from agent to server
MeshCommand_AgentTag = 15 // Send the mesh agent tag to the server
MeshCommand_AgentTag = 15, // Send the mesh agent tag to the server
MeshCommand_CoreOk = 16 // Sent by the server to indicate the meshcore is ok
} MeshCommands_Binary;
#pragma pack(push,1)