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.