1. openssl
在config_rsa.h
#define POLARSSL_SSL_SRV_C


2. cjson 坑
malloc非配内存失败		//函数重写 
/* JSON parser in C. */

//#include <string.h>
//#include <stdio.h>
//#include <math.h>
//#include <stdlib.h>
#include <float.h>
#include <limits.h>
//#include <ctype.h>

#include "cmsis_os.h"

#include "FreeRTOS.h"
#include "task.h"


这个函数pow
#include <math.h>

3. list.h
#define list_entry(ptr, type, member) \
		((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
        //container_of(ptr, type, member)

list.h 没有typeof函数

4. md5 api


5. commcloud  md5sum value err;
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"

/* Md5 sum  */
#include "lwip/opt.h"


6. OTA 

url::
https://deviot.lenovo.com.cn/webpage/airpurifier/lenovo-bulb-ota-us-dev-v312-s2mflash.bin

7. time api

#include "rtc_api.h"
 time_t seconds;
 rtc_init();
 rtc_write(1256729737);
 
 seconds = rtc_read();
 printf("Time as seconds since January 1, 1970 = %d\n", seconds);
 printf("Time as a basic string = %s", ctime(&seconds));
 rtw_msleep_os(5001);
 
 
 8. gadget 不上线
在websockets里上线前加延时10ms
