RUVIDEO
Поделитесь видео 🙏

Download Files with ESP8266 HTTPS client - Day 20 of #100DaysOfCode in IoT

Today, I downloaded the file from the Internet using ESP8266 HTTPS Client and stored it in ESP8266 flash memory securely over HTTPS protocol with proper SSL certificate verification...

You can find the code from this episode here:
https://github.com/ttarnowski/esp8266-file-system/tree/file-download-https-client

How to download files on ESP8266 over HTTP: https://www.youtube.com/watch?v=vVMHZe1s14I
How to read/write files on ESP8266: https://www.youtube.com/watch?v=0jDD0XaDus4

Core lib repo: https://github.com/ttarnowski/esp8266-lib-core
How I built core library: https://www.youtube.com/watch?v=Jw2rrXtbGhQ

Command to clone core lib (you need to "cd" into "lib" directory of the project):
git clone [email protected]:ttarnowski/esp8266-lib-core.git Core

Social Media:
Twitter: https://twitter.com/t_tarnowski
Linkedin: https://www.linkedin.com/in/tomasz-ta...
My website: https://tomasztarnowski.com/#newsletter
GitHub: https://github.com/ttarnowski

Software used in the video:
1. Visual Studio Code IDE:
https://code.visualstudio.com/
2. C/C++ VSCode extension:
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
3. Clang-Format VSCode extension:
https://marketplace.visualstudio.com/items?itemName=xaver.clang-format
4. PlatformIO VSCode extension:
https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide

Thanks for watching and see you tomorrow!

00:00 Intro
00:38 Initial code and config
01:24 Installing my core library
02:17 Arduino IDE example that my code is going to be based on today
04:20 Including and initializing my library's classes
07:58 Configuring SingleHostHTTPSClient
09:08 Extracting PEM certificate using Firefox and including it in my code
10:36 Using SingleHostHTTPSClient to send request
12:56 Refactoring SingleHostHTTPSClient to deal with response body as a stream
33:00 How to read body stream and store it as a file in device's flash memory
42:20 Reading the file and sending it to the serial monitor
43:30 Going through the code step by step
49:20 Deployment and test
52:08 Plan for tomorrow and the end

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Download Files with ESP8266 HTTPS client - Day 20 of #100DaysOfCode in IoT», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.