Merge branch '2023_open_source_contest' of https://gitlink.org.cn/hc0014/xiuos into 2023_open_source_contest

This commit is contained in:
huang
2023-09-27 14:02:20 +08:00
parent a1df906d16
commit 274759aafb
30 changed files with 3360 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
#ifndef _CJSON_PROCESS_H_
#define _CJSON_PROCESS_H_
#include "cJSON.h"
#include "stdint.h"
#define NAME "name"
#define TEMP_NUM "temp"
#define HUM_NUM "hum"
#define DEFAULT_NAME "fire"
#define DEFAULT_TEMP_NUM 25.0
#define DEFAULT_HUM_NUM 50.0
#define UPDATE_SUCCESS 1
#define UPDATE_FAIL 0
cJSON* cJSON_Data_Init(void);
uint8_t cJSON_Update(const cJSON * const object,const char * const string,void * d);
void Proscess(void* data);
#endif