prepare to implementation files API

This commit is contained in:
Bogdan Pilyugin 2024-03-12 14:24:59 +02:00
parent 981440adda
commit 06ecf10ae5
3 changed files with 16 additions and 4 deletions

View File

@ -19,8 +19,8 @@
* Description:
*/
#ifndef COMPONENTS_WEBGUIAPP_INCLUDE_MQTTFILES_H_
#define COMPONENTS_WEBGUIAPP_INCLUDE_MQTTFILES_H_
#ifndef COMPONENTS_WEBGUIAPP_INCLUDE_FILESAPI_H_
#define COMPONENTS_WEBGUIAPP_INCLUDE_FILESAPI_H_
@ -40,4 +40,4 @@ typedef struct
#endif /* COMPONENTS_WEBGUIAPP_INCLUDE_MQTTFILES_H_ */
#endif /* COMPONENTS_WEBGUIAPP_INCLUDE_FILESAPI_H_ */

View File

@ -19,7 +19,12 @@
* Description:
*/
#include MQTTFiles.h
#include "FilesAPI.h"
void FileAPIHandler(char *argres, int rw)
{
}

View File

@ -31,6 +31,7 @@
#include "esp_idf_version.h"
#include "NetTransport.h"
#include "esp_vfs.h"
#include "FilesAPI.h"
extern SYS_CONFIG SysConfig;
@ -490,8 +491,13 @@ static void funct_file_put(char *argres, int rw)
}
static void funct_file_operation(char *argres, int rw)
{
}
const int hw_rev = CONFIG_BOARD_HARDWARE_REVISION;
const bool VAR_TRUE = true;
const bool VAR_FALSE = false;
@ -682,6 +688,7 @@ const rest_var_t SystemVariables[] =
{ 0, "file_delete", &funct_file_delete, VAR_FUNCT, R, 0, 0 },
{ 0, "file_get", &funct_file_get, VAR_FUNCT, R, 0, 0 },
{ 0, "file_put", &funct_file_put, VAR_FUNCT, R, 0, 0 },
{ 0, "file_operation", &funct_file_operation, VAR_FUNCT, R, 0, 0 },
};