Comments (9)
I was just about to raise an issue to see if there was any desire (or backlash) against submitting a PR with a patch to allow a compile flag to incorporate PsychicHttp - as I have a working version that does this
Is there any other view on this (I ask because AsyncWebServer does not look to be actively supported and PsychicHttp looks to be more efficient)
from elegantota.
Sounds great!
We use websockets a lot and it seems to run much more stable with PsychicHttp than with ESPAsyncWebServer. ESPAsyncWebServer is not maintained for a longer time and it has many open issues/PRs. In our opinion it would be a great feature to enable PsychicHttp by default.
from elegantota.
I just put my updates into a fork of ElegantOTA in https://github.com/HowardsPlayPen/ElegantOTA and I shall send a PR later with the tweaks (once I triple check that it all looks good). I have included a simple example that shows the build flag to use in platform.ini
from elegantota.
Really cool! I just tested your fork, and it works great.
from elegantota.
@HowardsPlayPen Let me know when PR is ready, PsychicHttp looks great.
from elegantota.
I have just sent a PR - let me know if there is anything you don't like..
from elegantota.
Uploading with elegantota_upload.py
throws an error:
<Response [405]> Request method for this URI is not handled by server
Is there a server listener missing?
from elegantota.
Hello - apologies, I am not familiar with that python script or what it does. Do you think this is down to the PsychicHttp code I integrated (does it work with the regular code base?). I have not watched to see if ElegantOTA has been updated to know if there are any updates that might conflict somehow.
I am happy to have a look if you gave more details
from elegantota.
I just wanted to write a short description of how we tested the upload script. It seems that we had an older version of platformio_upload.py
called elegantota_upload.py
. Updating the script solved our problem.
With platformio_upload.py
you can upload the firmware directly from VSCode to the device via OTA.
Steps to do:
- Take the current
platformio_upload.py
script from https://raw.githubusercontent.com/ayushsharma82/ElegantOTA/master/platformio_upload.py and place it in the project's root folder besideplatformoi.ini
- Add the following configuration to the board's
[env]
sectionplatformio.ini
:
extra_scripts = platformio_upload.py
upload_protocol = custom
custom_upload_url = http://DEVICEADDRESS/update
- Build and upload the project in VSCode (PlatformIO)
VSCode terminal output:
CURRENT: upload_protocol = custom
Uploading .pio/build/esp32-wroom-OTA/firmware.bin
Serverconfiguration: autentication not needed.
Upload Progress: 0%| | 0.00/927k [00:00<?, ?B/s]
Upload Progress: 17%|█▋ | 160k/927k [00:00<00:01, 697kB/s]
Upload Progress: 26%|██▌ | 240k/927k [00:00<00:02, 255kB/s]
Upload Progress: 31%|███ | 288k/927k [00:01<00:03, 196kB/s]
Upload Progress: 35%|███▍ | 320k/927k [00:01<00:03, 194kB/s]
Upload Progress: 38%|███▊ | 352k/927k [00:01<00:03, 148kB/s]
Upload Progress: 41%|████▏ | 384k/927k [00:01<00:03, 163kB/s]
Upload Progress: 45%|████▍ | 416k/927k [00:02<00:03, 132kB/s]
Upload Progress: 48%|████▊ | 448k/927k [00:02<00:03, 146kB/s]
Upload Progress: 52%|█████▏ | 480k/927k [00:02<00:03, 116kB/s]
Upload Progress: 100%|██████████| 927k/927k [00:08<00:00, 116kB/s]
Upload successful.
Server response: OK
@ayushsharma82 could you please merge #159 from @HowardsPlayPen?
from elegantota.
Related Issues (20)
- No ELEGANT OTA lite web interface appears HOT 1
- ElegantOTA crashed on ESP32 NINA-W102 EVK HOT 2
- Documentation fails to mention how to access portal HOT 2
- platformio_upload.py with authentication not working HOT 4
- no <wifi.h> & <update.h> files found. HOT 3
- I want to purchase The Elegant ETA Pro but I have Questions. HOT 3
- adding a check for flash-organisation / flash-sizes HOT 2
- Async Demo will not compile HOT 18
- possible to use OTA via PlattformAIO? HOT 2
- OTA crash when trying to upload HOT 4
- ElegantOTA and WebThings (Arduino) + ESP32-S3 HOT 2
- Brakes at ElegantOTA.cpp -> Line 141 HOT 2
- Smartphone browser crash when selecting a path containing a data type. HOT 2
- Failed to write chunked data to free space HOT 2
- EspressifSystems version 3.0.1 arduino ide 1.8.19 HOT 4
- Did you remove the Coffee Crap? HOT 8
- Use of absolute paths causes failures with subpath-based reverse proxying HOT 4
- esp_int_wdt.h no such file directory HOT 1
- error after enable async mode HOT 11
- beginResponse_P - Braking Change in mathieucarbou / ESPAsyncWebServer for ESP32 in release 3.0.2 HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elegantota.