当前位置:网站首页>Learning Tai Chi Maker - esp8226 (XIII) OTA
Learning Tai Chi Maker - esp8226 (XIII) OTA
2022-06-24 09:23:00 【xuechanba】
Video link : https://www.bilibili.com/video/BV1L7411c7jw?p=23&vd_source=b91967c499b23106586d7aa35af46413
The data link :http://www.taichi-maker.com/homepage/esp8266-nodemcu-iot/iot-c/esp8266-tips/esp8266-ota/
So-called OTA, Namely Over-The-Air Abbreviation . Someone translated it into “ Over the air ”, There are also translations for “ Space transmission ”. Anyway, translate , about ESP2866 Come on , adopt OTA We don't have to ESP8266 Connect to a computer , And just through WiFi You can use it Arduino IDE towards ESP8266 Upload program .
1 Upload the initial sample program through the data line
// An highlighted block
var foo = 'bar';
Program description ,
The main function of this program is to make ESP8266 On the development board LED Produce a flashing effect . The time interval of this flicker effect can be determined by a parameter in the program blinkInterval To set it up . besides , Also added OTA function .
Mainly talking about the... In this program OTA part ,
stay setup Function ,
// OTA Set up and start
ArduinoOTA.setHostname("ESP8266");
ArduinoOTA.setPassword("12345678");
ArduinoOTA.begin();
among ,ArduinoOTA.setHostname The function is used to enable the development board to implement OTA Give it a name , The name is in OTA Data transmission will see .
ArduinoOTA.setPassword The password() function sets the password , When we use OTA Function when uploading programs to the development board , Password authentication is required .
after , adopt ArduinoOTA.begin(); The development board will launch OTA function .
Last , stay loop Function ,
void loop() {
ArduinoOTA.handle();
}
ArduinoOTA.handle(); Need to be called frequently , The purpose is to see if a computer sends a request for program upload to the development board .
Download the program to through the data cable ESP8266 In the after , Start the serial port monitor and have a look ,
2 Use OTA Function to upload the above sample program again
after , Disconnect the serial port cable , Power up the development board separately and restart Arduino IDE , then ,

Click the network port ,
Click upload .

then , Will appear

After entering the password ,( If there's a firewall , Click on the confirmation )

then , No need to restart the development board , You can directly see the running effect of the program .
3 OTA Functional limitations

边栏推荐
- [redis realize Secondary killing Business ①] Overview of Secondary killing Process | Basic Business Realization
- Cmake命令之target_compile_options
- Ordinary people have no education background. Can they earn more than 10000 yuan a month by Self-taught programming?
- Niuke network realizes simple calculator function
- Chapter 7 operation bit and bit string (III)
- NETRCA: AN EFFECTIVE NETWORK FAULT CAUSE LOCALIZATION之论文阅读
- 4274. suffix expression
- Spark - the number of leftouterjoin results is inconsistent with that of the left table
- tp5 使用post接收数组数据时报variable type error: array错误的解决方法
- 从618看京东即时零售的野心
猜你喜欢

Recommendation - Secret of curiosity: how many dancing angels can stand on the tip of a needle?

I heard that you are still spending money to buy ppt templates from the Internet?

Huawei Router: GRE Technology

Numpy NP in numpy c_ And np r_ Explain in detail

The list of open source summer winners has been publicized, and the field of basic software has become a hot application this year

普通人没有学历,自学编程可以月入过万吗?

2022.06.23 (traversal of lc_144,94145\
![[ES6 breakthrough] promise is comparable to native custom encapsulation (10000 words)](/img/b3/b156d75c7b4f03580c449f8499cd74.png)
[ES6 breakthrough] promise is comparable to native custom encapsulation (10000 words)

MySQL data (Linux Environment) scheduled backup

Rpiplay implementation of raspberry pie airplay projector
随机推荐
零基础自学SQL课程 | SQL语句语法顺序与执行顺序
深入解析 Apache BookKeeper 系列:第三篇——读取原理
2022.6.13-6.19 AI行业周刊(第102期):职业发展
Rpiplay implementation of raspberry pie airplay projector
CDGA|到底怎么才能做好数据治理呢?
目标检测系列——Fast R-CNN
The ambition of JD instant retailing from 618
MySQL - SQL statement
Cmake命令之target_compile_options
Threejs glow channel 01 (unrealbroompass & layers)
P6117-[JOI 2019 Final]コイン集め【贪心】
Unable to change the virtual machine power status and report an error solution
Some common pitfalls in getting started with jupyter:
Huawei Router: IPSec Technology
[Niuke] length of the last word of HJ1 string
Microblog writing - flow chart - sequence chart - Gantt chart - Mermaid flow chart - good results
MYCAT read / write separation and MySQL master-slave synchronization
从618看京东即时零售的野心
【Redis實現秒殺業務①】秒殺流程概述|基本業務實現
[noi Simulation Competition] send (tree DP)