mg_mgr_poll second paramater

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

mg_mgr_poll second paramater

Postby snahmad75 » Fri Aug 24, 2018 7:45 pm

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 ?

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: mg_mgr_poll second paramater

Postby ESP_Sprite » Sat Aug 25, 2018 3:01 am

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.

Who is online

Users browsing this forum: No registered users and 92 guests