You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MQTT protocol is found to be too slow for real-time communication.
When the Python script reads from the sensor and sends the data to Node-RED, the data displayed on the dashboard is showed with a consistent delay.
This might be either that Node-RED is too slow to show data in real time, or that the MQTT protocol is inappropriate for this fast, real-time communication.
In order to accurately determine the reason, the following tests will be made:
Create a function on Node-RED to generate random numbers and display them on the dashboard (to rule out the MQTT delay factor)
Swap MQTT protocol with WebSocket (to check if speed improves)
The text was updated successfully, but these errors were encountered:
After a series of tests on Node-RED, it was ruled out that MQTT was the actual bottleneck. An inject node was used to generate timestamps and print them on the dashboard, where the sensor data is.
There are consistent delays with fast data (aka a data point every 0.01 seconds). Node-RED is therefore too slow processing and rendering the data on the dashboard in real time.
At this point, the most important thing is data-logging, streaming is secondary. In the near future, other means of faster data-displaying will be evaluated.
MQTT protocol is found to be too slow for real-time communication.
When the Python script reads from the sensor and sends the data to Node-RED, the data displayed on the dashboard is showed with a consistent delay.
This might be either that Node-RED is too slow to show data in real time, or that the MQTT protocol is inappropriate for this fast, real-time communication.
In order to accurately determine the reason, the following tests will be made:
The text was updated successfully, but these errors were encountered: