-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make NET_MAX_TM_MS and NET_MIN_TM_MS configurable #12
Comments
Hi @tarzan115 The If you need to minimize the delay caused by Please keep in mind that the delay provided to Unfortunately, we don't have a mechanism to modify the Please try to modify the library values directly and let me know about the results. |
I modified |
@tarzan115 |
okay, thank you so much 😄 |
I just changed void yield(unsigned long timeoutMs = 1000L) {
Timer timer(mSystem, timeoutMs);
MQTT_LOG_PRINTFLN("Yield for %lu ms", timer.leftMs());
do {
ReadPacketResult result;
cycle(result, timer);
} while (isConnected() && !timer.expired());
} to void yield(unsigned long timeoutMs = 1000L) {
Timer timer(mSystem, timeoutMs);
MQTT_LOG_PRINTFLN("Yield for %lu ms", timer.leftMs());
if(isConnected())
{
ReadPacketResult result;
cycle(result, timer);
}
} that means we don't need Please check that. |
The idea of the |
I checked again and find out not in |
What is the value do you use for |
I set |
For In your case, the |
Okay, thank you so much 😃 |
Added optional parameters to the constructor.
hi @monstrenyatko
I have a problem.
I checked in your code, the value
NET_MIN_TM_MS
min is 100L. that meanloop
function will delay 100 ms.can I set
NET_MIN_TM_MS
smaller to makeloop
function faster or another way to makeloop
faster by just run when having data or something like that.thank you so much. 😄
The text was updated successfully, but these errors were encountered: