#pragma once #ifndef PYTHON_R_H #define PYTHON_R_H #include #include #include #include #include #include #include "cJSON.h" #include #include "fork_pipe_lib.h" #include "utility.h" #include "nweb.h" //#define STRSPLIT_SIZE 256 #define PYTHON_FOLDER "/emmc/plugin/Aida_data/python_code" //#define INI_FILE_PATH "/emmc/plugin/Aida_data/trans.names" #define PY_SHELL "sh /emmc/plugin/Aida_data/python_code/run_python.sh" #define PYTHON_LOG "python_log.txt" #define PYTHON_CODE_SIZE 1024*20 #define PTYHON_FILE_NAME 1024 #define DEBUG_COMPORT_PRINT_FGET 1 void deletePythonFile(char *sINFileName); void readPythonFile(char *sINFileName, char *sOutput); void readFolderList(char *output); //int runPython(char *pythonData, int sock); //2024/03/08 void runPython(char *pythonData); // 2024-10-14 //void runPython(char *pythonData); //void uploadPython(char *urlData); const char* uploadPython(char *urlData); void parseContent(char *recvBuffer); #endif