When I implement websocket client, I need a function : htons(), I know this function is under netinet/in.h when we use linux base os, here we need to include the lwip library.
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!
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.