prepare to implementation files API
This commit is contained in:
parent
981440adda
commit
06ecf10ae5
|
|
@ -19,8 +19,8 @@
|
||||||
* Description:
|
* Description:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COMPONENTS_WEBGUIAPP_INCLUDE_MQTTFILES_H_
|
#ifndef COMPONENTS_WEBGUIAPP_INCLUDE_FILESAPI_H_
|
||||||
#define COMPONENTS_WEBGUIAPP_INCLUDE_MQTTFILES_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_ */
|
||||||
|
|
@ -19,7 +19,12 @@
|
||||||
* Description:
|
* Description:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include MQTTFiles.h
|
#include "FilesAPI.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void FileAPIHandler(char *argres, int rw)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
#include "esp_idf_version.h"
|
#include "esp_idf_version.h"
|
||||||
#include "NetTransport.h"
|
#include "NetTransport.h"
|
||||||
#include "esp_vfs.h"
|
#include "esp_vfs.h"
|
||||||
|
#include "FilesAPI.h"
|
||||||
|
|
||||||
extern SYS_CONFIG SysConfig;
|
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 int hw_rev = CONFIG_BOARD_HARDWARE_REVISION;
|
||||||
const bool VAR_TRUE = true;
|
const bool VAR_TRUE = true;
|
||||||
const bool VAR_FALSE = false;
|
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_delete", &funct_file_delete, VAR_FUNCT, R, 0, 0 },
|
||||||
{ 0, "file_get", &funct_file_get, 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_put", &funct_file_put, VAR_FUNCT, R, 0, 0 },
|
||||||
|
{ 0, "file_operation", &funct_file_operation, VAR_FUNCT, R, 0, 0 },
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user