[MQTT-SN] No way to give back pressure #79539
Unanswered
TorstenRobitzki
asked this question in
Ideas
Replies: 1 comment
-
An other issue is, that the library ignores the result of the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current design of the MQTT-SN library just covers the case, that the library has to wait for input. The case, where the library has to wait for bandwidth on the outgoing link is (nearly) not covered.
If the library finds the output link being saturated, it will wait and retry. This leads then to either very poor performance (when that poll interval is large) or very much power consumption (if that poll interval is small).
My current workaround for that is a function (similar to
mqtt_sn_input()
) that can be called, when there is confidence, that a next attempt to transmit a message might not fail. Would such a workaround be accepted as a fix? Better ideas, as how to fix the issue with the current design?Beta Was this translation helpful? Give feedback.
All reactions