This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3235S: Getting time set in network processor

Part Number: CC3235S

I am using CC3235S module. After I connect to network through my router, I want to get time (hour , minute and seconds) set in network processor. I see in one of the example code where time is set using sl_DeviceSet(). I tried to get time using following code:

SlDateTime_t dt;
sl_DeviceGet(SL_DEVICE_GENERAL, SL_DEVICE_GENERAL_DATE_TIME,sizeof(SlDateTime_t), (unsigned char *)(&dt));

But this returns garbage values for dt.tm_hour, dt.tm_min and dt.tm_sec.