Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Clemens Kirchgatterer
@everslick
yeah
Me No Dev
@me-no-dev
I have successfuly used javascript to fetch resources one by one (even AJAX)
Clemens Kirchgatterer
@everslick
that could be an idea
Me No Dev
@me-no-dev
the days before Async :D
let me see if I can dig up the code
Clemens Kirchgatterer
@everslick
that would be very kind of you, sir.
like this?
Me No Dev
@me-no-dev
@everslick i sent it to you in private :D
brutzler
@brutzler

Hi,
for remote debugging I sometimes use an "debug-ESP" and transfer everything what is coming from my "main-ESP" into the serial interface via UDP broadcast.

  if (stringComplete) {
    UDP.beginPacket("192.168.1.255", 514);        // Broadcast on Port 514
    UDP.write(inputString.c_str());
    UDP.endPacket();
    inputString = "";
    stringComplete = false;
  }

A terminal program (YAT) on the PC is receiving the debug messages.
Just thinking, why this can not be done from the "main-ESP" itself...
Do you think, I can gain any problems with this way? run out of numbers of connections/sockets?

Clemens Kirchgatterer
@everslick
i use this all the time.
just try it
keep in mind, that if you send too often, the ESP will just drop some packets, without any error.
brutzler
@brutzler

any hint how to make this easier?
normally I use for debug on serial something like this:

#define DEBUG Serial1
DEBUG << String(Date)<< "  " << String(Time) <<  endl

Can I make somehow a "#define DEBUG UDP". What do I need for this?

Or is there already something part of the ESP-kernel?
Me No Dev
@me-no-dev
might not get the result you expect :D
that above will probably send 3 packets
Clemens Kirchgatterer
@everslick
clean way would probably be to implement a class that inherits from Stream, and sends everything via UDP.
brutzler
@brutzler
I agree. But developing this, is beyond my abilities :-(
How do you use UDP-Debug in your sketches?
Clemens Kirchgatterer
@everslick
with big and complicated code. :-D
brutzler
@brutzler
@everslick is this neccessary?
Develo
@devyte
@me-no-dev will you be updating the ESPAsyncUDP lib soon? Sorry to bug you Bbo
About
About it*
Me No Dev
@me-no-dev
sure :)
Develo
@devyte
Thanks! I tried to give it a shot, but lost sanity quickly. There's too much confusion in the changes from lwip 1.4 to lwip 2 wrt ip addresses with all the typedefs
After we
(Sorry, daughter is trolling me for ny phone)
Me No Dev
@me-no-dev
hahahahah
Develo
@devyte
After we discussed the async udp lib some time ago, I've been keeping an eye out for libs that work asynchronously and use udpcontext, and I think they really would improve with the espasyncudp lib
Me No Dev
@me-no-dev
AsynsUDP is probably the easiest way to build UDP services :)
it will be a part of ESP32 Arduino ;)
at least for me :D
Develo
@devyte
After debugging my daughter, turns out she just needed some milk :smile:
Me No Dev
@me-no-dev
hahahahahahaha
hack a milk bottle on her head ;)
maybe attach ESP to MQTT when she uses it
Develo
@devyte
I was thinking milk-on-demand, but I suspect that would break the whole diaper solution
The esp32 firmware is built on freeRTOS, right?
Me No Dev
@me-no-dev
yup :)
Develo
@devyte
Is the whole task api exposed to the user?
Me No Dev
@me-no-dev
yup
yes it is.
Me No Dev
@me-no-dev
well... honestly there are some missleading things in this video\
Victor Tseng
@Palatis
at least it's an entry point for noobs
Me No Dev
@me-no-dev
that it is :)
Develo
@devyte
thx for the video
Victor Tseng
@Palatis
the create task / pin task stuff is correct
Me No Dev
@me-no-dev
it's all generally correct