5. Function Description
The working mode of this module is divided into three levels: working role; transmission mode; service category.
From the role of the WiFi layer, it can be divided into Access Point, commonly known as AP access point, Station,
commonly known as station, and WiFI-Direct, also known as P2P or WiFi direct connection;
In terms of transmission mode, it is divided into single-mode transparent transmission and protocol transmission;
From the service category, it is divided into TCP Server, TCP Client, UDP, MQTT, HTPP client.
5.1 Electrical Characteristics
Job roles are defined from the perspective of the WiFi physical layer.
5.1.1Access Point (AP mode)
Access Point is referred to as AP mode, which is similar to a router, allowing wireless devices to connect and
establish TCP/IP-based server, client, and UDP communications. In this mode, 4 stations can be connected, and a
maximum of 4 Tcp socket transmissions are supported. Command AT+MODE=1,x,x set the first bit as: 1, to configure
the module to work in the AP role.
5.1.2Station (STA mode)
Station mode is referred to as STA. In this role, the module does not provide connection, but can only be connected
to an Access Point or a router. This module supports TCP server, TCP client, and UDP in the Station role, and supports a
maximum of 4 sockets. Also supports MQTT, WebSocket, HTTP clinet. The command AT+MODE=2,x,x sets the first bit
as: 2, to configure the module to work in the STA role.
5.1.3 WiFi Direct (P2P mode)
WiFi Direct mode is a way to directly establish a point-to-point connection without routing, also known as P2P,
which is similar to Bluetooth but the transmission rate is significantly higher than that of Bluetooth. Command
AT+MODE=3,x,x to set the first bit as: 3, to configure the module to work in WiFi Direct mode.
There are two roles in P2P mode: Client; GroupOwner.
5.2 Transmission Mode
To be precise, the transmission mode refers to the number of sockets supported by the module under the TCP/IP
protocol. When only one socket is supported, we define it as single-mode transparent transmission, and when it supports
multiple channels, we define it as protocol transmission. It should be noted that the transmission mode parameter does
not take effect on WiFi-Direct.
5.2.1 Transparent transmission
Transparent transmission means that when only one socket is supported, data from either the serial port or the