1. 在使用CC3200进行SSL加密的时候,需要证书,但是证书有一个截止日期,如果当前CC3200没有设置这个日期,那么证书通信会失败,需要添加代码
int setDeviceTime() { SlDateTime_t dateTime= {0}; dateTime.sl_tm_day = (_u32)27; // Day of month (DD format) range 1-31 dateTime.sl_tm_mon = (_u32)9; // Month (MM format) in the range of 1-12 dateTime.sl_tm_year = (_u32)2016; // Year (YYYY format) dateTime.sl_tm_hour = (_u32)17; // Hours in the range of 0-23 dateTime.sl_tm_min = (_u32)55; // Minutes in the range of 0-59 dateTime.sl_tm_sec = (_u32)22; // Seconds in the range of 0-59 sl_DevSet(SL_DEVICE_GENERAL_CONFIGURATION, SL_DEVICE_GENERAL_CONFIGURATION_DATE_TIME, sizeof(SlDateTime_t), (_u8 *)(&dateTime)); }