Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jakubandrysek/basicota-esp32-library

:floppy_disk: Basic OTA library for ESP32 and VSCode - PlatformIO
https://github.com/jakubandrysek/basicota-esp32-library

esp32 library ota ota-update platformio

Last synced: 29 days ago
JSON representation

:floppy_disk: Basic OTA library for ESP32 and VSCode - PlatformIO

Awesome Lists containing this project

README

        

# Basic OTA library for ESP32 and VSCode - PlatformIO
### By [Kuba AndrΓ½sek](https://kubaandrysek.cz/)
This project is inspirated by [Lastminuteengineers.com](https://lastminuteengineers.com/esp32-ota-updates-arduino-ide/)

# Integration takes only 2 minutes and it's very easy to use

## Usage

### [Example project](https://github.com/JakubAndrysek/BasicOTA-ESP32-library/tree/master/example/BasicUsage)

### First run
1. Create new [PlatformIO](https://platformio.org/) project - Eespressif ESP32 Dev Module
1. Copy [example](https://github.com/JakubAndrysek/BasicOTA-ESP32-library/blob/master/example/BasicUsage/main.cpp) code into `main.cpp`
1. Change WiFi SSID and PASSWORD to suit your credentials
1. Open `platformio.ini` and after `framework = arduino` insert to new line [`upload_flags = -p 3232`](https://github.com/JakubAndrysek/BasicOTA-ESP32-library/blob/master/example/BasicUsage/platformio.ini#L20). It [will fix](https://github.com/platformio/platform-espressif32/issues/197) upload issue.
1. Connect ESP32 to the PC and flash software. For the first time ESP must be connected by cable!

### Further usage
1. If you see in your terminal IP adress of your ESP proceed to the next point. If not, try the First run again.
1. Open `platformio.ini` and add [`upload_port = YOUR ESP32 IP`](https://github.com/JakubAndrysek/BasicOTA-ESP32-library/blob/master/example/BasicUsage/platformio.ini#L19) (IP adress is displayed in the terminal) after `upload_flags = -p 3232` Example:`upload_port = 192.168.0.166`
1. That`s all πŸ˜ƒ. From now on your software will be uploaded via the WiFI.

Succes upload message - Upload status

[![Build Status](/docs/SuccesTerminal.png)]()
Succes upload message - Terminal

[![Build Status](/docs/SussecESP.png)]()

### License - [MIT](https://github.com/JakubAndrysek/BasicOTA-ESP32-library/blob/master/LICENSE)