We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1963584 commit 727d9d5Copy full SHA for 727d9d5
1 file changed
examples/pub-sub/mqtt-sub.c
@@ -527,6 +527,13 @@ int sub_client(MQTTCtx *mqttCtx)
527
break;
528
}
529
530
+ #ifdef WOLFMQTT_NONBLOCK
531
+ else if (rc == MQTT_CODE_CONTINUE) {
532
+ /* Non-blocking: no data yet, keep polling. mqtt_check_timeout()
533
+ * above will convert this to MQTT_CODE_ERROR_TIMEOUT after the
534
+ * inactivity window, which drives the keep-alive ping branch. */
535
+ }
536
+ #endif
537
else if (rc != MQTT_CODE_SUCCESS) {
538
/* There was an error */
539
PRINTF("MQTT Message Wait: %s (%d)",
0 commit comments