I am currently porting existing K65 code to the MPC5748G. In the K65 SDK you are able to call the SNTP_oneshot function to request the time from the SNTP server. Is there a way to do this in the SDK for the MPC5748G?
解決済! 解決策の投稿を見る。
Hi,
there's LWIP stack included in the SDK and there's minimal SNTP implemention:
https://www.nongnu.org/lwip/2_0_x/group__sntp.html
The source file can be found here:
c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32PA_RTM_3.0.3\middleware\tcpip\lwip\src\apps\sntp\sntp.c
Regards,
Lukas
I went though the list of functions in the link provided and it does not seem like they provide a way to send a single request to get the current time like KSDK does.
Hi,
there's LWIP stack included in the SDK and there's minimal SNTP implemention:
https://www.nongnu.org/lwip/2_0_x/group__sntp.html
The source file can be found here:
c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32PA_RTM_3.0.3\middleware\tcpip\lwip\src\apps\sntp\sntp.c
Regards,
Lukas