Dear TI community,
I was reading through the code of the "httpsgetCC3100_EK_TM4C1294XL_TI " in which the SNTP protocol have been used , and there a task has been created to run the http client which is as follow:
/* * ======== httpsTask ======== */ Void httpsTask(UArg arg0, UArg arg1) { void *netIF; /* Open WiFi and await a connection */ netIF = socketsStartUp(); httpsFxn(); /* Close the network - don't do this if other tasks are using it */ socketsShutDown(netIF); }
Now in the httpsFxn() the function startNTP() has been called which in return after all the NTP server initialisation call the SNTP library function SNTP_start.
So I am wondering since the SNTP_start function is inside a thread but the thread is not having any infinite while loop so is this http client is going to run only once or it is using some internal task or thread to run continuously.
Also I want to know that do the SNTP_start function need to be called once in any thread or task or again and again after a fixed interval of time.
regards