Skip to content

Contributed by 黎明将至!, organized by Ai-Thinker

Ai-WB2-32S http_server and http_client Demo Communication Setup

Preface

This document introduces how to use the Ai-WB2-32S http_server and http_client demos to establish communication; modifications to the http_server demo are also covered in this document.

1. Equipment Preparation

  • Two Ai-WB2-32S modules
  • Two Type-C cables
  • One device that can run a Linux system

2. Use the http_server Demo to Set Up a Server

Step 1: Enter the Directory

cd ~/Ai-Thinker-WB2/applications/protocols/http_server/simple_server/

Step 2: Write the wifi_execute.c File

Step 3: Modify the http_server.c File

Step 4: Power On the Server Module and Connect It to the Virtual Machine

After powering on the server module, the following screen appears

Step 5: Compile the Code

make -j8

Step 6: Flash the Firmware

make flash p=/dev/ttyUSB0 b=115200

Press the RST key on the module

Step 7: Run the Server

Disconnect the module from the virtual machine

Open the serial port debugging assistant

按下模组RST键,开始运行服务器

3. Use the http_client Demo to Set Up a Client

Released under the MIT License. Build Time 2026-09-11 14:52:23