Create a http server and a client dns

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Create a http server and a client dns

878 次查看
feraro
Contributor IV

Hello.

I'm working with TWR K60N512, CW10.2 and MQX3.7. I'm implementing in my project an HTTP server and a DNS client. Separately I both work correctly, but can not get the two to work together.


Attach the initialization file used to see if someone can help me, telling me where the problem is.

Thank you.


Original Attachment has been moved to: rtcs_init.txt.zip

0 项奖励
4 回复数

487 次查看
feraro
Contributor IV

Hello.

I've managed to run the http server and the DNS client, but what I can not get to work is SEC_GetTime function (). Get stuck a while and returned in 1970. Any help?

Thanks.

0 项奖励

486 次查看
DavidS
NXP Employee
NXP Employee

Hi Fernando,

Attached is example code that sets the time/date to a default value or you can set it up to use a NTP server to get current date/time and lastly if NTP server not working date/time defaults to the compiled date/time of the project.

FYI I did this back in March 2014 so it is for MQX4.x.

Regards,

David

0 项奖励

486 次查看
thom_nic
Contributor II

Were you able to fix the issue?  Curious about how it was resolved.

0 项奖励

486 次查看
feraro
Contributor IV

Sorry, attach a file wrong. I attached the correct one.


0 项奖励