[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] SNTP client does not work

From: Simon Goldschmidt
Subject: Re: [lwip-users] SNTP client does not work
Date: Tue, 3 Feb 2015 15:24:59 +0100

Karl Karpfen wrote:
> Meanwhile it is working. The trick: I have to do a htonl/s() for all addresses
> that are used to configure the network interface (IP, netmask, gateway) but 
> not
> for the IP and port number of the SNTP server to be contacted.
> Somewhat strange but works this way.

There's nothing strange here: the contents of ip_addr_t needs to be in network 
byte order and the sntp client calls a function that returns the correct byte 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]