
The core library and extension library of LuatOS together build an efficient, flexible, and easily extensible IoT development ecosystem. With a rich set of APIs, developers can easily implement complex functions such as device control, data collection, and cloud communication, significantly enhancing development efficiency and product stability.
A new friend in the community is seeking help: The development board has arrived, and HTTP application development is still being attempted…
HTTP is the lowest cost option in the following scenarios:
-
Exchanging files between the terminal and the cloud without developing complex packet segmentation protocols;
-
The terminal downloads various parameters from the cloud, or submits various parameters to the cloud, without designing message protocols, using HTTP parameters instead, which is very convenient.
Hezhao LuatOS provides developers with the HTTP core library and the HTTPPlus extension library for implementing HTTP clients.
Products supporting LuatOS development can use:
-
Air8000/A/W/G/D… series;
-
Air780EHM/EHV/EGH/EPM… series;
-
Air8101/Air8101A series;
-
……
For the latest product development materials, please refer to the Hezhao documentation center:—— docs.openluat.com

1
What are the differences between the two libraries?
First, it is important to understand that LuatOS adopts a modular design with core and extension libraries. The core library is responsible for efficient interfacing with the underlying hardware platform, while the extension library focuses on the rapid implementation of specific functions and scenarios.
-
The core library is implemented in C at the lower level and will occupy Flash space in the firmware;
-
The extension library supplements the core library, implemented in Lua, and only a portion of the functionality is burned based on user code requirements, which will not occupy storage space in the core firmware.
The HTTP core library is one of the communication components of the Hezhao LuatOS system, while the HTTPPlus extension library supplements the HTTP core library, and the two libraries can meet different development needs in various scenarios.
Latest API documentation:https://docs.openluat.com/osapi/core/http/https://docs.openluat.com/osapi/ext/httpplus/
The differences between the HTTP core library and the HTTPPlus extension library are as follows:

2
Download the latest example demo
Hezhao provides application examples for the HTTP core library and HTTPPlus extension library based on different application scenarios, which can be referenced in the demo/http directory of the Hezhao LuatOS repository for each product.
Taking the Air780EHM series as an example, the latest source code can be downloaded from:
https://gitee.com/openLuat/LuatOS/tree/master/module/Air780EHM_Air780EHV_Air780EGH/demo/http

Due to space constraints, only a portion of the example code snippets are included here; for the latest complete demo, please refer to the LuatOS source code repository. Friends in need, download and give it a try!


That’s all for today’s content~If you have any questions regarding IoT development selection, feel free to join the technical discussion group for further exploration.
