ESP8266 Developer Zone The Official ESP8266 Forum 2015-04-27T15:41:54+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=410 2015-04-27T15:41:54+08:00 2015-04-27T15:41:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=410&p=1541#p1541 <![CDATA[Re: htons function]]> #define htons(_n) ((uint16_t)((((_n) & 0xff) << 8) | (((_n) >> 8) & 0xff)))

Thanks!

Statistics: Posted by alexchang — Mon Apr 27, 2015 3:41 pm


]]>
2015-04-27T15:35:53+08:00 2015-04-27T15:35:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=410&p=1539#p1539 <![CDATA[htons function]]>
Since I use IoT sample project, lwip is included by default, the only thing I need to do is adding includes, then I try to include h files one by one, but I found I can't do it, because I need to include almost every lwip and system h files.

Just want to know which is the easiest way to use this function? Thanks!

Statistics: Posted by alexchang — Mon Apr 27, 2015 3:35 pm


]]>