Dear Sara
I have a working program.
The serial output can go very fast
BUT
the MQTT communication arrive to the Node Red (MQTT-In debug) with a considerable delay (1.5 sec)
I tested it by slowing down the data output on the ESP32 (with a non blocking)
MQTT seem to buffer it becouse it come to the debugger with a delay (delay depend on the speed I am sending the data out) More data out = larger delay (more undisplayed data in the MQTT buffer)
1 Is it normal to have such a large communication delay and if not
2 How can I speed up the delivery to the screen?
2 Is the Pi4 is the slow part in the process ?
Hi.
I’m sorry, but I’m not sure. I never tested the speed of my MQTT connections.
I don’t think 1.5 seconds is a lot of delay. But, of course, it will depend on your application.
Unfortunately, I don’t have any resources about this subject.
Regards,
Sara