Skip to content

Commit cd8e4fe

Browse files
committed
Add fflush to mqtt-sub exmaple
1 parent 0a6d2e3 commit cd8e4fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/pub-sub/mqtt-sub.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ static int mqtt_message_cb(MqttClient *client, MqttMessage *msg,
9797
else {
9898
PRINTF("%s", buf);
9999
}
100+
101+
fflush(stdout);
100102

101103
#ifdef WOLFMQTT_V5
102104
{

0 commit comments

Comments
 (0)