Skip to content

Commit

Permalink
* added RemoveFiles call (#50)
Browse files Browse the repository at this point in the history
* removed obsolete code

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
  • Loading branch information
eckelj committed Dec 7, 2023
1 parent b891c07 commit 84e341d
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 388 deletions.
1 change: 1 addition & 0 deletions tasmota/include/i18n.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@
#define D_CMND_ATTESTMACHINE "AttestMachine"
#define D_CMND_NOTARIZATION_PERIODICITY "NotarizationPeriodicity"
#define D_CMND_NOTARIZE "Notarize"
#define D_CMND_REMOVE_FILES "RemoveFiles"
#define D_CMND_STATUS "Status"
#define D_STATUS1_PARAMETER "PRM"
#define D_STATUS2_FIRMWARE "FWR"
Expand Down
11 changes: 9 additions & 2 deletions tasmota/tasmota_support/support_command.ino
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const char kTasmotaCommands[] PROGMEM = "|" // No prefix
D_CMND_MNEMONIC "|" D_CMND_STORESEED "|" D_CMND_PUBLICKEYS "|" D_CMND_PLANETMINTAPI "|" D_CMND_CHALLENGERESPONSE "|"
D_CMND_BALANCE "|" D_CMND_RESOLVEID "|" D_CMND_PLANETMINTDENOM "|" D_CMND_GETACCOUNTID "|"
D_CMND_PLANETMINTCHAINID "|" D_CMND_MACHINEDATA "|" D_CMND_POPCHALLENGE "|" D_CMND_ATTESTMACHINE "|"
D_CMND_NOTARIZATION_PERIODICITY "|" D_CMND_NOTARIZE "|"
D_CMND_NOTARIZATION_PERIODICITY "|" D_CMND_NOTARIZE "|" D_CMND_REMOVE_FILES "|"
#ifdef USE_I2C
D_CMND_I2CSCAN "|" D_CMND_I2CDRIVER "|"
#endif
Expand Down Expand Up @@ -88,7 +88,7 @@ void (* const TasmotaCommand[])(void) PROGMEM = {
&CmndMemonic, &CmndStoreSeed, &CmndPublicKeys, &CmndPlanetmintAPI, &CmndChallengeResponse,
&CmndBalance, &CmdResolveCid, &CmndPlanetmintDenom, &CmndGetAccountID,
&CmndPlanetmintChainID, &CmndMachineData, &CmndPoPChallenge, &CmndAttestMachine,
&CmndNotarizationPeriodicity, &CmndNotarize,
&CmndNotarizationPeriodicity, &CmndNotarize, &CmndRemoveFiles,
#ifdef USE_I2C
&CmndI2cScan, &CmndI2cDriver,
#endif
Expand Down Expand Up @@ -1037,6 +1037,13 @@ void CmndAttestMachine(void) {
ResponseClear();
}

void CmndRemoveFiles(void) {
RemoveFiles();
Response_P( "{ \"%s\": \"%s\" }", D_CMND_REMOVE_FILES, "Removed Files" );
CmndStatusResponse(34);
ResponseClear();
}

void CmndStatus(void)
{
int32_t payload = XdrvMailbox.payload;
Expand Down
Loading

0 comments on commit 84e341d

Please sign in to comment.