当前位置:网站首页>ESP8266
ESP8266
2022-06-27 02:49:00 【1615549892】
附加开发板管理网址是什么用?
这个网址可以让arduino获得开发板的主芯片的库函数。让我们写的代码能直接调用库函数。
如何测试开发板的好坏?
使用blink example试一下,看看led闪烁否?
网站服务器交互的实现流程
8266运行的代码中设置了网页发送的路径和消息类型作为匹配参数,来调用不同的函数。
esp8266_server.on("/", HTTP_GET, handleRoot);
esp8266_server.on("/LED", HTTP_POST, handleLED);
esp8266_server.onNotFound(handleNotFound);
每当有客户端向服务器发送HTTP请求时,我们可以利用on函数来设置HTTP请求回调函数。
通过HTTP请求回调函数,我们可以让ESP8266服务器生成响应信息并发送给HTTP请求客户端。
server.on(uri, uri_handler);
server.on(uri, method, uri_handler);
– uri: HTTP请求客户端所请求的uri(参数类型:const String*)
– uri_handler: HTTP请求回调函数(参数类型:THandlerFunction)
– method: 此参数用于设置向客户端发送响应信息时所使用的HTTP方法。以下为可供选择的响应方法关键字。
HTTP_ANY
HTTP_GET
HTTP_POST
HTTP_PUT
HTTP_PATCH
HTTP_DELETE
HTTP_OPTIONS
参考:
ESP8266 – ESP8266WebServer库 – on – 太极创客
ESP8266能作为softAP(路由AP)/station(终端设备)。ESP8266能透传串口数据。最大速率是4Mbps。
可以直接用官方的AT固件,也可以自己使用SDK开发固件(non-OS SDK和RTOS SDK)。自己不会SDK开发,所以直接使用AT固件来透传数据。
https://zhuanlan.zhihu.com/p/166536234
边栏推荐
- Paddlepaddle 20 implementation and use of exponentialmovingaverage (EMA) (support static graph and dynamic graph)
- Memcached basics 11
- Questions and answers of chlor alkali electrolysis process in 2022
- Test the respective roles of nohup and &
- 谷歌开始卷自己,AI架构Pathways加持,推出200亿生成模型
- SQLite reader plug-in tests SQLite syntax
- Yalm 100b: 100billion parameter open source large model from yandex, Russia, allowing commercial use
- Fork (), exec (), waitpid (), $? > > in Perl 8 combination
- Flink learning 4:flink technology stack
- 事业观、金钱观与幸福观
猜你喜欢
一文教你Kali信息收集
【一起上水硕系列】Day 6
PAT甲级 1026 Table Tennis
pytorch_grad_cam——pytorch下的模型特征(Class Activation Mapping, CAM)可视化库
栈溢出漏洞
Cs5213 HDMI to VGA (with audio) single turn scheme, cs5213 HDMI to VGA (with audio) IC
学习太极创客 — MQTT(六)ESP8266 发布 MQTT 消息
TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
STM32入门介绍
Learn Tai Chi maker mqtt (IX) esp8266 subscribe to and publish mqtt messages at the same time
随机推荐
Flink学习1:简介
jwt的认证流程和使用案例
Memcached basics 11
Leetcode 785: judgment bipartite graph
pytorch_ grad_ Cam -- visual Library of class activation mapping (CAM) under pytorch
Quicksand painting simulator source code
Record the method of reading excel provided by unity and the solution to some pits encountered
参数估计——《概率论及其数理统计》第七章学习报告(点估计)
Press key to control LED status reversal
Flink Learning 2: Application Scenarios
一文教你Kali信息收集
Paddlepaddle 20 implementation and use of exponentialmovingaverage (EMA) (support static graph and dynamic graph)
Oracle/PLSQL: Cast Function
Oracle/PLSQL: Translate Function
How to solve the problem of low applet utilization
【数组】剑指 Offer II 012. 左右两边子数组的和相等 | 剑指 Offer II 013. 二维子矩阵的和
学习太极创客 — MQTT 第二章(三)保留消息
Cvpr2022 | pointdistiller: structured knowledge distillation for efficient and compact 3D detection
Flink learning 3: data processing mode (stream batch)
Questions and answers of chlor alkali electrolysis process in 2022