Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 05:00
    laercionit edited #6907
  • 04:54
    laercionit opened #6907
  • 03:27
    Tech-TX synchronize #6898
  • 02:34
    devyte closed #6906
  • 01:13
    Gaus12 opened #6906
  • Dec 12 20:44
  • Dec 12 20:18
    dok-net synchronize #6804
  • Dec 12 19:55
    dok-net synchronize #6047
  • Dec 12 19:51
    dok-net synchronize #6902
  • Dec 12 19:50
    dok-net synchronize #6782
  • Dec 12 19:47
    dok-net synchronize #6857
  • Dec 12 17:56
    devyte labeled #6898
  • Dec 12 17:56
    devyte labeled #6898
  • Dec 12 17:56
    devyte milestoned #6898
  • Dec 12 17:53
    devyte synchronize #6898
  • Dec 12 17:53
    devyte closed #6894
  • Dec 12 17:52

    devyte on master

    fix for #6904: NodeMCU v1.0 boa… (compare)

  • Dec 12 17:51
    devyte closed #6904
  • Dec 12 17:51
    devyte closed #6905
  • Dec 12 17:51
    devyte edited #6905
Clemens Kirchgatterer
@everslick
but i have no control over how many connections the browser opens to fetch different resources from the server, so it is hard to predict what happens.
Me No Dev
@me-no-dev
if you are low on RAM and can not afford to handle multiple connections, then by all means you should use the sync server and make sure you handle only one
actually you do have ;)
Clemens Kirchgatterer
@everslick
yes?
Me No Dev
@me-no-dev
it depends on your design
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\