Create a http server and a client dns

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Create a http server and a client dns

879件の閲覧回数
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 返答(返信)

488件の閲覧回数
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 件の賞賛

487件の閲覧回数
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 件の賞賛

487件の閲覧回数
thom_nic
Contributor II

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

0 件の賞賛

487件の閲覧回数
feraro
Contributor IV

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


0 件の賞賛