You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
|
|
#pragma once |
|
#ifndef PYTHON_R_H |
|
#define PYTHON_R_H |
|
|
|
#include <dirent.h> |
|
#include <stdio.h> |
|
#include <stdlib.h> |
|
#include <string.h> |
|
#include <setjmp.h> |
|
#include <sys/stat.h> |
|
#include "cJSON.h" |
|
#include <unistd.h> |
|
#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 |