Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:40
    atesin commented #1184
  • 01:40
    SinglWolf commented #686
  • Sep 29 17:18
    stale[bot] unlabeled #1157
  • Sep 29 17:18
    stale[bot] commented #1157
  • Sep 29 17:18
    simonttp78 commented #1157
  • Sep 28 23:24
    RoboticNerd commented #1141
  • Sep 27 17:34
    slimline33 commented #1210
  • Sep 27 14:56
    slimline33 commented #1210
  • Sep 26 14:20
    me-chiel commented #1147
  • Sep 25 16:35
    gibo77 commented #1190
  • Sep 25 16:23
    Pablo2048 commented #1190
  • Sep 25 16:13
    softhack007 commented #1190
  • Sep 25 16:11
    softhack007 commented #1190
  • Sep 25 11:11
    Napoleon-BlownApart closed #1213
  • Sep 25 11:11
    Napoleon-BlownApart commented #1213
  • Sep 25 11:11
    Napoleon-BlownApart commented #1213
  • Sep 25 11:11
    Napoleon-BlownApart reopened #1213
  • Sep 25 11:11
    Napoleon-BlownApart commented #1213
  • Sep 25 11:11
    Napoleon-BlownApart commented #1213
  • Sep 25 11:10
    Napoleon-BlownApart closed #1213
Umer Arshad
@umerm64
I have posted it in the arduino-esp32 group here at gitter as well @atanisoft
Mike Dunston
@atanisoft
open an issue on GitHub as well
Umer Arshad
@umerm64
Muhammad Arslan
@arslan437
Hi, New to gitter. How can I check how many messages are in queue of web socket.
Mehrdad K
@mkeyno

Hi all, I'm using async webserver call back to start or stop the timer , I can start and change alaram period without any problem but when I stop the timer I've got following error and chip reset

abort() was called at PC 0x400eca91 on core 0
Backtrace:0x4008369d:0x3ffbeadc |<-CORRUPTED

my call back is

void dosing(String side, String value,AsyncWebServerRequest *request){
request->send(200, "text/plain", "sure"); 
uint8_t s=side.toInt();
uint32_t v=value.toInt();
//PRINTS("speed=",v);
if(v<11)  stepper.stop();
 }
//////////////////////////////////
// class method
void  Stepper::stop(void){
//timerDetachInterrupt(timers[timer_n]);
 timerAlarmDisable(timers[timer_n]);
 timerStop(timers[timer_n]);
}
/////
OnurNP
@K0rkunc
hi how to detect wifi password is wrong
Hamza Khan
@hamza765
@K0rkunc maybe checkout WiFi.status()
Hamza Khan
@hamza765
void onBody(AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total){
  if(!index){
    Serial.printf("BodyStart: %u B\n", total);
  }
  for(size_t i=0; i<len; i++){
    Serial.write(data[i]);
  }
  if(index + len == total){
    Serial.printf("BodyEnd: %u B\n", total);
  }
}
server.on("/connect", HTTP_POST, [](AsyncWebServerRequest * request) {
    Serial.print("connect");

    request->send(200);

  }, onBody);
  server.onFileUpload(onUpload);
  server.onRequestBody(onBody);
Any clue why my code isn't printing anything out when i send call that route and send it a message of 'ping'?
RW
@mm108
hi to the good people on gitter
suddenly ran into a somewhat weird issue with what I think points to ESP Async WebServer
it was all working fine and then this error pops up on PlatformIO
.pio/libdeps/esp32dev/ESP Async WebServer/src/WebAuthentication.cpp:74: undefined reference to `mbedtls_md5_starts'
.pio/libdeps/esp32dev/ESP Async WebServer/src/WebAuthentication.cpp:74: undefined reference to `mbedtls_md5_starts'
did some research and the it seems to be related to not having the latest version ... but mine's the absolute latest version - of all the libraries
including PlatformIO, VS Code etc
the cause seems to be the now deprecated mbedtls_md5_starts which is replaced by mbedtls_md5_starts_ret()
RW
@mm108
void onBody(AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total){
  if(!index){
    Serial.printf("BodyStart: %u B\n", total);
  }
  for(size_t i=0; i<len; i++){
    Serial.write(data[i]);
  }
  if(index + len == total){
    Serial.printf("BodyEnd: %u B\n", total);
  }
}
server.on("/connect", HTTP_POST, [](AsyncWebServerRequest * request) {
    Serial.print("connect");

    request->send(200);

  }, onBody);
  server.onFileUpload(onUpload);
  server.onRequestBody(onBody);

Any clue why my code isn't printing anything out when i send call that route and send it a message of 'ping'?

Not an expert on ESP Async Web Server but couple of things I can think of - is the method on the client side correct? ( GET or POST )?

And I am guessing the serial port has been initialized with the correct baud rate ...
Oops didn't notice the date - that seems to be 10 days old issue :-E

hi to the good people on gitter

I did post this issue on the ESPAsyncWebServer github repo but I thought I'd ask here - perhaps someone has run into a similar problem

Mike Dunston
@atanisoft

did some research and the it seems to be related to not having the latest version ... but mine's the absolute latest version - of all the libraries

Latest released version via lib manager or latest from GitHub? There is a big difference as the error you are reporting has been fixed on GitHub but the library version was not advanced thus it is not available via lib manager.

RW
@mm108
oops ... from the PlatformIO library registry
then I guess I can download a copy gtom Github and add it to the project for now?
Mike Dunston
@atanisoft
you can adjust your platformio.ini file to have it automatically pull and maintain it
RW
@mm108

did some research and the it seems to be related to not having the latest version ... but mine's the absolute latest version - of all the libraries

Latest released version via lib manager or latest from GitHub? There is a big difference as the error you are reporting has been fixed on GitHub but the library version was not advanced thus it is not available via lib manager.

you can adjust your platformio.ini file to have it automatically pull and maintain it

Cool, thanks

Mike Dunston
@atanisoft
declare the lib_deps entry for it as https://github.com/me-no-dev/ESPAsyncWebServer.git and it should pull automatically
RW
@mm108
at least now I know where the error most probably lies ...

declare the lib_deps entry for it as https://github.com/me-no-dev/ESPAsyncWebServer.git and it should pull automatically

Wonderful thanks

thanks a ton
Mike Dunston
@atanisoft
you may also need a similar line for AsyncTCP (it will have a similar pattern)
RW
@mm108
Ok cool ... will do that too
Normally I add libraries from the PlatformIO lib registry ... but it seems that that isn't always the best thing to do :)
I was living under the impression that the libs are the latest cos I keep updating them - via the "Libraries" tab in PlatformIO
Cool thanks a ton -
Mike Dunston
@atanisoft
generally yes the library manager is a good approach, unfortunately things can get out of sync when updates are put in without a newer version applied to them.
RW
@mm108
my libs are all generally declared this way in the ini: me-no-dev/ESP Async WebServer @ ^1.2.3
unless a newer version has some issue in which case I restrict the version to something that's tried and tested

generally yes the library manager is a good approach, unfortunately things can get out of sync when updates are put in without a newer version applied to them.

Hopefully that will get fixed in time to come. PlatformIO has generally been wonderful to use

Mike Dunston
@atanisoft
Hopefully that will get fixed in time to come. PlatformIO has generally been wonderful to use
Don't count on it, it is a library author issue and not a PlatformIO issue. The same would happen over on Arduino IDE. People forget to update the version when they update their library with a bug fix and then it goes out of sync
RW
@mm108
Oops :)
My experience with PlatformIO is kinda limited ... cos for the most part once the libs are installed then it is generally only the code to be dealt with ...
but I learnt something new - so I guess next time I have one more area to look at when something like this happens
Earlier I was so sure that the libs are latest, that I did not even care to check that part
which I should have :-E
lol ... I nearly started replacing the deprecated functions with newer ones ---- lucky I had my hesitation and reservations doing that .. it just didn't seem right
RW
@mm108

declare the lib_deps entry for it as https://github.com/me-no-dev/ESPAsyncWebServer.git and it should pull automatically

That compiled without issues! Thanks a zillion

GUEST.it
@guestisp
Hi guys. I'm struggling trying to execute a VERY LONG task triggered by a websocket message. workflow is as follow:
  1. Client send a message to the ESP32, via websocket, asking to run a very long task
  2. the handler gets the message and start a freertos thread (without the thread , the watchdog kills everything) with a struct containign a reference to the asyncwebsocketclient
  3. when the thread is finished , i try to reply to the client but every time I do this, guru meditation 1 reboot the esp
any idea or a sample code ? What I need is simply: ability to run very very long tanks in a non-blocking mode and being able to reply (when done) via websocket
GUEST.it
@guestisp
Also, is AsyncJson mandatory when using inside an async websocket handler ? If yes, why and which error I would get without using it ?
GUEST.it
@guestisp
Any idea on how to transmit, almost in real-time the value got from analogRead to a websocket client without triggering the watchdog or similiar ? In other words, a web interface, communicating via websocket, has to read the ph value in realtime. and to do so, I need the analogread.