ayushsharma82

ayushsharma82

Constantly Training the Neural Network of Life

Member Since 5 years ago

SOFTT @softt-io, Land of Diversity - India

Experience Points
181
follower
Lessons Completed
1
follow
Lessons Completed
85
stars
Best Reply Awards
35
repos

783 contributions in the last year

Pinned
⚡ Blazing fast library to create a functional dashboard for ESP8266 and ESP32
⚡ Remote Serial monitor for ESP8266 & ESP32
⚡ Perform OTAs for ESP8266 / ESP32 Elegantly! Uses AsyncWebServer
⚡ Push OTAs to ESP8266 or ESP32 Elegantly.
⚡ Easy to Use ESP8266 & ESP32 DDNS Update Client Library.
⚡ Simple & Easy WiFi Manager with Captive Portal for ESP8266 / ESP32
Activity
May
7
1 week ago
Activity icon
fork

ayushsharma82 forked expressjs/express

⚡ Fast, unopinionated, minimalist web framework for node.
ayushsharma82 MIT License Updated
fork time in 1 week ago
May
2
2 weeks ago
Activity icon
fork

ayushsharma82 forked richardtallent/vite-plugin-singlefile

⚡ Vite plugin for inlining JavaScript and CSS resources
ayushsharma82 MIT License Updated
fork time in 2 weeks ago
Apr
26
3 weeks ago
Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

PlatformIO workflow upload

Add a script that allows the PlatformIO upload command to write firmware directly to a device running AsyncElegantOTA.

This is a fair bit nicer to work with as compared to building in PlatformIO and then having to update separately via an external web interface.

ayushsharma82
ayushsharma82

No worries, it would be nice if you can create a PR ( so that I can add you to hall of fame in releases ). I'll test it out for you once done.

Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

[BUG]

Describe the bug I test with ESP8285, but it not works. Update over AsyncElegantOTA stop on 27%. Default example sketch. Is possible configure to use with ESP8285 (f.e. SonOff boards etc...)

Microcontroller Specs:

  • Board: [ESP8285 ]
  • Microcontroller: [ ESP8285 ]
  • Did you modify the partition table? [No]
  • Browser: [chrome]
  • Library Version: [latest]
ayushsharma82
ayushsharma82

Hi @puhycz , Have you selected the right partition table with OTA support in Arduino IDE?

Important step is to flash it with Serial first and then proceed to check with OTA.

Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

Not working with FreeRtos tasks

The example alone works really well, but as soon as i add the code to my program (which uses three freertos tasks, on both cores) it no longer responds to ping or webpage, any ideas on how to fix this?

No erros were reported, the IP address is being shown on the serial terminal, but no web answers.

ayushsharma82
ayushsharma82

Without really knowing the code I can only point to these solutions:

  1. Please check if your tasks are not delaying the event loop by much, AsyncWebServer depends on a FreeRTOS task as well.

  2. Make sure you are calling server.begin();

Let us know if you find the cause or solution.

Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

Esp8266 update?

Hello, Does this really work on the esp8266? I have seen others used a esp32. However I only have esp8266 devices. I have to update all 40 of them and I don't want to keep going so far for an update of code. This will help me out a lot. My sensors are for temperatures and humidity.

Joseph

ayushsharma82
ayushsharma82

Hi @Therealjosephchrzempiec ,

Yes AsyncElegantOTA is intended to work with both ESP8266 & ESP32. You can try this library out and see if it's playing well with your code. Most of the issues posted in the repo arise due to application error.

Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

Improvement

Hi @ayushsharma82 . Thanks for your amazing work. I would be glad and I think also the community if you can provide an example of using your OTA lib with the Ethernet instead that with Wifi. One starting point it could be an integration with this lib which is widely used.

https://github.com/jandrassy/EthernetENC

Thanks for your time

ayushsharma82
ayushsharma82

Thanks for your suggestion, sadly this is not a drop in replacement to AsyncWebServer on which the whole library stands. I've took note of this library and will surely add it in future if the situation favours it.

Activity icon
issue

ayushsharma82 issue ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

Improvement

Hi @ayushsharma82 . Thanks for your amazing work. I would be glad and I think also the community if you can provide an example of using your OTA lib with the Ethernet instead that with Wifi. One starting point it could be an integration with this lib which is widely used.

https://github.com/jandrassy/EthernetENC

Thanks for your time

Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

[BUG] ESP8266 Stuck.....

Describe the bug I'm running an ESP8266 and when i try and upload the code on my esp01 its stuck or either gives an error

Do you get any error/exception stack? If so please paste it here:

Exception

last failed alloc call: 4020B159(80)

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

last failed alloc caller: 0x4020b159

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 3460, room 16 tail 4 chksum 0xcc load 0x3fff20b8, len 40, room 4 tail 4 chksum 0xc9 csum 0xc9 v0009a570

Microcontroller Specs:

  • Board: ESP01
  • Microcontroller: 8266
  • Did you modify the partition table? No
  • Browser: chrome
  • Library Version: latest on platformio which is .6

Additional context Add any other context about the problem here.

ayushsharma82
ayushsharma82

@PhantomRex123

Most of the issues in this type of repo arise due to application error. From the exception which you have posted, I've noticed that your heap is getting full and there is no space for OTA library to function properly. Source: https://stackoverflow.com/a/56388719

Note: The AsyncElegantOTA solution can be only elegant if the underlying code is good and not reaching the limits.

Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

[BUG] In WIFI_AP mode, if I add AsyncElegantOTA, Wifi become unstable

If I remove the line AsyncElegantOTA.begin(&server); The Wifi AP is always searchable, but once I add the line AsyncElegantOTA.begin(&server);, the AP only appears randomly and disconnect very often.

No error/exception is observed in serial monitor

Microcontroller Specs:

  • Board: Wemos D1 Mini
  • Microcontroller: ESP8266
  • Did you modify the partition table? No
  • Browser: chrome
  • Library Version: [latest]
ayushsharma82
ayushsharma82

Hi @hungyip,

Is this happening using the Example provided with the library?

Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

[BUG]

This library (is not so elegant as it sounds :-)) and cannot be used inside another library :-( Probably because it is (badly) written as everything-in-a-.h-file instead of splitting properly .cpp and .h When AsyncElegantOta.h is included in 2 .cpp files, AsyncElegantOta is instantiated twice, resulting in an error : "(.bss.AsyncElegantOTA+0x0): multiple definition of `AsyncElegantOTA'" If it is included in just one .cpp file in another library, I get the error "'Update.h' cannot be found"

Activity icon
issue

ayushsharma82 issue ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

[BUG]

This library (is not so elegant as it sounds :-)) and cannot be used inside another library :-( Probably because it is (badly) written as everything-in-a-.h-file instead of splitting properly .cpp and .h When AsyncElegantOta.h is included in 2 .cpp files, AsyncElegantOta is instantiated twice, resulting in an error : "(.bss.AsyncElegantOTA+0x0): multiple definition of `AsyncElegantOTA'" If it is included in just one .cpp file in another library, I get the error "'Update.h' cannot be found"

Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

ESP32: reset watchdog timer during update

Without this change, updates consistently fail because the watchdog causes a panic (see https://github.com/espressif/arduino-esp32/issues/3775, where similar behaviour is reported.)

E (20871) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (20871) task_wdt:  - IDLE (CPU 0)
E (20871) task_wdt: Tasks currently running:
E (20871) task_wdt: CPU 0: ipc0
E (20871) task_wdt: CPU 1: loopTask
E (20871) task_wdt: Aborting.

With this change, OTA updates complete as expected.

ayushsharma82
ayushsharma82

Hi @flowerysong,

Thanks for digging into code and finding the cause! I'd like to merge this, can you please resolve the conflicts which occurred with recent merge? We just split AsyncElegantOTA header into separate .h and .cpp files with #95 .

Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

Watchdog cause restart ESP - update not end. Must be done better, but problem is fixed.

Command for disable watchdog added.

ayushsharma82
ayushsharma82

Hi @Sejny , I think a increasing the WDT timeout is better than disabling it completely as that would unexpectedly hang the microcontroller sometimes.

Please try out this pull request: #90 , and let me know if it fixes your issue as well. This has a much safer implementation by just increasing the WDT timeout.

pull request

ayushsharma82 pull request ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

PlatformIO workflow upload

Add a script that allows the PlatformIO upload command to write firmware directly to a device running AsyncElegantOTA.

This is a fair bit nicer to work with as compared to building in PlatformIO and then having to update separately via an external web interface.

push

ayushsharma82 push ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82
ayushsharma82
ayushsharma82

Merge pull request #82 from lukepalmer/master

PlatformIO workflow upload

commit sha: 0ad1b4af6a2f70b21fc4bfbc046d9930358b36fb

push time in 3 weeks ago
Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

Moved implementation to cpp file

Because AsyncElegantOTA was declared and initialized in AsyncElegantOTA.h, the compiler would throw errors if the header file was included multiple times. This is fixed by declaring AsyncElegantOTA as extern and moving the initialization to AsyncElegantOTA.cpp.

ayushsharma82
ayushsharma82

I did this for ElegantOTA but was getting some time to do it for AsyncElegantOTA as well, I really appreciate for taking some time to sort this out! Thanks & Merged!

pull request

ayushsharma82 pull request ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

Moved implementation to cpp file

Because AsyncElegantOTA was declared and initialized in AsyncElegantOTA.h, the compiler would throw errors if the header file was included multiple times. This is fixed by declaring AsyncElegantOTA as extern and moving the initialization to AsyncElegantOTA.cpp.

push

ayushsharma82 push ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

Moved implementation to cpp file (#95)

  • Moved implementation to cpp file
  • Removed .gitignore from .gitignore

commit sha: 0f7d3c000521479f59c60f63213cf2dd20b8c88b

push time in 3 weeks ago
Activity icon
issue

ayushsharma82 issue comment ayushsharma82/AsyncElegantOTA

ayushsharma82
ayushsharma82

PlatformIO workflow upload

Add a script that allows the PlatformIO upload command to write firmware directly to a device running AsyncElegantOTA.

This is a fair bit nicer to work with as compared to building in PlatformIO and then having to update separately via an external web interface.

ayushsharma82
ayushsharma82

Wow @lukepalmer, I don't know how this pull request went through my emails without me noticing. This is really a nice addition!

Would you like to add the same for ElegantOTA? ( AsyncElegantOTA is a sister repository, I keep functionality same here for the sake of AsyncWebServer ).

Apr
25
3 weeks ago
Activity icon
created tag
createdAt 3 weeks ago
Activity icon
published release April 2022 Release

ayushsharma82 in ayushsharma82/AsyncElegantOTA create published release April 2022 Release

createdAt 3 weeks ago
Previous