mqtt update

This commit is contained in:
huang
2023-07-13 10:56:50 +08:00
parent 455fd31c7f
commit c06138364f
25 changed files with 3510 additions and 0 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