C Language: cJSON and Struct Conversion

C Language: cJSON and Struct Conversion

1 Introduction JSON is currently the most popular text data transmission format, widely used in network communication. With the rise of the Internet of Things, embedded devices also need to start using JSON for data transmission. So, how can we quickly and simply perform JSON serialization and deserialization in C language? Currently, the most widely … Read more

Core Components of OpenWrt: libubox(5): jshn.sh

Core Components of OpenWrt: libubox(5): jshn.sh

Continuing with the fifth article on libubox: jshn.sh, which is also a widely used script library in the OpenWrt system. We can search for the keyword jshn in the OpenWrt source directory to find the following related files: ruok@vm:~/Desktop/openwrt$ find . -name jshn*…./staging_dir/packages/mediatek/jshn_2021-05-16-b14c4688-2_aarch64_cortex-a53.ipk./staging_dir/target-aarch64_cortex-a53_musl/pkginfo/jshn.provides./staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/bin/jshn./staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/libubox/jshn.sh – jshn is a library for converting JSON objects, used for generating … Read more

Stop Using curl! httpie Teaches You to Make Smoother HTTP Requests

Stop Using curl! httpie Teaches You to Make Smoother HTTP Requests

In daily development, almost every backend developer, frontend developer, or testing engineer frequently deals with HTTP requests. Whether debugging interfaces, checking responses, or testing server behavior, the most commonly used tool is probably <span>curl</span>. However, many people find the syntax of <span>curl</span> unintuitive, the output unattractive, and reading it cumbersome. Is there a more elegant … Read more

Obtaining D365 Connection Token via HTTP in Power Automate

Obtaining D365 Connection Token via HTTP in Power Automate

In a previous article, we discussed the registration of application users. Today, we will use the HTTP step in Power Automate to obtain a token based on the application user information for querying D365 OData WebAPI data.Adding Application User in D365Create a new instant cloud flow and select the manual trigger flow.Add [New Step]Select the … Read more

Designing a Web Server Based on ESP-IDF for ESP32

Designing a Web Server Based on ESP-IDF for ESP32

1. Code The web server based on the ESP32 IDF framework includes WiFi connection, HTTP service, front-end interaction, and hardware control functions: #include <stdio.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_wifi.h" #include "esp_event.h" #include "esp_log.h" #include "nvs_flash.h" #include "esp_http_server.h" #include "driver/gpio.h" #include "cJSON.h" // WiFi configuration #define WIFI_SSID "your_SSID" #define WIFI_PASS "your_PASSWORD" … Read more

Detailed Usage of the Linux gron Command

Detailed Usage of the Linux gron Command

Introduction <span><span>gron</span></span> is a unique command-line tool that converts <span><span>JSON</span></span> data into discrete, easily <span><span>grep</span></span>-processable assignment statement format. Its name comes from “<span><span>grepable on</span></span>” or “<span><span>grepable JSON</span></span>“, primarily addressing the challenge of handling complex <span><span>JSON</span></span> data in the command line. Core Value <span><span>gron</span></span> is centered around flattening <span><span>JSON</span></span> data into a format similar to <span><span>json.path.to.key … Read more

jsonifier: A C++ Library for JSON Handling

jsonifier: A C++ Library for JSON Handling

JSON is a lightweight data interchange format, while C++ is a powerful programming language. However, the combination of C++ and JSON is not so natural. Fortunately, the jsonifier library has emerged, acting as a bridge that allows C++ and JSON to communicate easily. jsonifier enables C++ programs to conveniently handle JSON data, whether it is … Read more

Linux Configuration Files: The Textual Dance of the System’s Soul

Linux Configuration Files: The Textual Dance of the System's Soul

🌟 Linux Configuration Files: The Textual Dance of the System’s Soul 💡 Introduction: In the world of Linux, configuration files are the “soul” of the system and applications. Whether it’s starting services, setting up networks, managing users, or customizing the desktop environment, almost all configurations can be accomplished by editing files. So, what exactly are … Read more

LuatOS Development: HTTP Example

LuatOS Development: HTTP Example

Read the latest documentation and participate:[Document Error Reporting for Rewards] Activity The latest document content can be found at: https://docs.openluat.com/air724ug/luatos/app/socket/http 1.Overview of HTTP This section provides a brief introduction to HTTP. For more detailed explanations or protocol documents, please refer to relevant websites or documents. 1.1 HTTP Request Methods The HTTP/1.1 protocol defines eight methods … Read more

Using PromQL in Prometheus HTTP API

Using PromQL in Prometheus HTTP API

The current stable HTTP API of Prometheus can be accessed via /api/v1. API Response Format The Prometheus API uses JSON format for response content. When the API call is successful, it will return a 2xx HTTP status code. Conversely, when the API call fails, it may return the following different HTTP status codes: 404 Bad … Read more