Page 1 of 1

mg_mgr_poll second paramater

Posted: Fri Aug 24, 2018 7:45 pm
by snahmad75
mg_mgr_poll(&mgr, ?);

My platform is Esp32

What is purpose of second paramater.
I notice if have 1 tcp connection than mg_mgr_poll(&mgr, 1); is good enough.

but I have 3 tcp connections it slows down receiving and sending tcp messages.
but i have to do mg_mgr_poll(&mgr, 2); to give more time for poll.

Is my understanding is correct?

If I more work to do I need to give more time ?

Re: mg_mgr_poll second paramater

Posted: Sat Aug 25, 2018 3:01 am
by ESP_Sprite
Seems to be a timeout, in ms. Notice that the Mongoose people have their own forum; you'll probably get more answers when you post there.