当前位置:网站首页>ESP8266

ESP8266

2022-06-27 02:49:00 one billion six hundred and fifteen million five hundred and fo

Additional development board management website is what to use ?

  This website can let arduino Get the library function of the main chip of the development board . Let's write code that can directly call library functions .

How to test the quality of the development board ?

Use blink example Have a try , have a look led Flashing no ?

Implementation process of web server interaction

8266 The running code sets the path and message type sent by the web page as matching parameters , To call different functions .

esp8266_server.on("/", HTTP_GET, handleRoot); 
esp8266_server.on("/LED", HTTP_POST, handleLED);
esp8266_server.onNotFound(handleNotFound); 

Whenever a client sends to the server HTTP When asked , We can use on Function to set HTTP Request callback function .

adopt HTTP Request callback function , We can get ESP8266 The server generates a response message and sends it to HTTP Requesting client .

server.on(uri, uri_handler);
server.on(uri, method, uri_handler);
– uri: HTTP Request the requested by the client uri( Parameter type :const String*)
– uri_handler: HTTP Request callback function ( Parameter type :THandlerFunction)
– method:  This parameter is used to set the... Used when sending response information to the client HTTP Method . The following are the response method keywords to choose from .
     HTTP_ANY
     HTTP_GET
     HTTP_POST
     HTTP_PUT
     HTTP_PATCH
     HTTP_DELETE
     HTTP_OPTIONS

Reference resources :
ESP8266 – ESP8266WebServer library – on – Taiji maker

ESP8266 Be able to act as softAP( route AP)/station( Terminal equipment ).ESP8266 It can transparently transmit serial port data . The maximum rate is 4Mbps.
You can use the official AT The firmware , You can also use it yourself SDK Developing firmware (non-OS SDK and RTOS SDK). I can't SDK Development , So use it directly AT Firmware to transparently transmit data .

https://zhuanlan.zhihu.com/p/166536234

原网站

版权声明
本文为[one billion six hundred and fifteen million five hundred and fo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270249155551.html