当前位置:网站首页>Esp8266 becomes client and server
Esp8266 becomes client and server
2022-06-30 22:36:00 【Call me sherbus】
1、ESP8266 Become a client for data transparent transmission
Create hotspots with your phone ,ID:Eddie,Pwd:13194472899,PC Connect to this hotspot
testing Wifi modular AT Status and set to STA Pattern ( Pattern 1)

Connect to hotspot

View computer properties PC Of IP Address and through the network debugging assistant PC Configure as server , The port is set to 8081( at will )


Because you are connected to the same server ,Wifi modular AT Configuration lookup IP And port , The two devices can communicate with each other

Enter the passthrough and start the passthrough

Send messages to each other

+++ Quit touzhuan
2、ESP8266 Become the communication between the server and the network debugging assistant
- testing Wifi modular AT Status and set to AP Hot mode ( Pattern 2)

- Hotspot setting port number

- see Wifi IP Address

- The network debugging assistant is set as the client

frequently-used AT Instructions
AT+CWMODE=1 //STA Pattern , Connect to others' hot spots
AT+CWMODE=2 //AP Pattern , Become a hot spot
AT+CWMODE=3 //STA and AP Dual mode
AT+CIFSR // see Wifi The equipment IP Information
AT+CWJAP="ID","PWD" // Join in AP hotspot , account number ID, password PWD
AT+CWSAP="ID","PWD",6,4 // Set up AP hotspot ssid yes ID,password yes PWD,ch The channel is 6,ecn It's encrypted 4 WPA_WPA2_PSK
AT+CIPSTART="TCP","IP Address","PORT" // adopt TCP To connect to ip Address and Port Port server
AT+CIPMODE=0 // Transparence mode off
AT+CIPMODE=1 // Turn on transmission mode
AT+CIPSEND=1 // Start penetrating
AT+CIPMUX=1 // Set to multi connection mode
AT+CIPSERVER=mode,port // for example :AT+CIPSERVER=1,8082 1: Turn on server mode ,port: Set the port
边栏推荐
- 理想中的接口自动化项目
- 智慧路灯| 云计算点亮智慧城市的“星星之火”
- 交易所系统开发如何开发?数字货币交易所系统开发成熟技术案例
- Fastjson V2 简单使用手册
- Classic case of multithreading
- What is flush software? In addition, is it safe to open an account online now?
- Label Contrastive Coding based Graph Neural Network for Graph Classification
- AtCoder Beginner Contest 257
- Technical principle of decentralized exchange system development - digital currency decentralized exchange system development (illustrative case)
- [BSP video tutorial] BSP video tutorial issue 19: AES encryption practice of single chip bootloader, including all open source codes of upper and lower computers (June 26, 2022)
猜你喜欢

JVM Part 21 of interview with big companies Q & A

Redis' cache penetration, cache breakdown and cache avalanche

Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could

Ten of the most heart piercing tests / programmer jokes, read the vast crowd, how to find?

The sandbox is being deployed on the polygon network

What if the taskbar is blank after win11 update? Solution to blank and stuck taskbar after win11 update

十个最为戳心测试/开程序员笑话,念茫茫人海,该如何寻觅?

latex左侧大括号 latex中大括号多行公式

latex字母头顶两个点

理想中的接口自动化项目
随机推荐
ESP8266 成为客户端和服务器
Apache server OpenSSL upgrade
How cloud computing can protect online education in the post epidemic Era
"Team training competition" Shandong multi university training 3
Redis的缓存穿透、缓存击穿和缓存雪崩
电脑版微信文件存储在哪个文件夹可以找到
KVM IO performance test data
100 important knowledge points that SQL must master: creating and manipulating tables
Classic case of multithreading
云游戏| 云计算推动游戏行业进入“新纪元”
[无线通信基础-13]:图解移动通信技术与应用发展-1-概述
有孚网络混合云,加速企业数字化转型升级
分享十万级TPS的IM即时通讯综合消息系统的架构
2022中国国潮发展新动向
msf之ms17-010永恒之蓝漏洞
AtCoder Beginner Contest 257
The Sandbox 正在 Polygon 网络上进行部署
RP prototype resource sharing - shopping app
[450. delete nodes in binary search tree]
Web APIs comprehensive case -tab column switching - dark horse programmer