* Add cli command to regenerate key pair

This commit is contained in:
Matthias Wientapper
2025-10-25 13:20:04 +02:00
parent 61cd01db27
commit 178ebf7282
4 changed files with 20 additions and 0 deletions

View File

@@ -245,6 +245,11 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
} else if (memcmp(command, "clear stats", 11) == 0) {
_callbacks->clearStats();
strcpy(reply, "(OK - stats reset)");
} else if (memcmp(command, "regeneratekeys", 14) == 0) {
// regenerate key pair
MESH_DEBUG_PRINTLN("Generating new keypair");
_callbacks->regenerateKeys();
_board->reboot(); // doesn't return
/*
* GET commands
*/