Reputation: 106
5 applications between Raspberry Pi in a project I did. 1 "Server will be Client to 4 of them. Will there be more traffic from the tool here, or via TCP/IP or using MQTT? Which is more detailed? Can you help? Good work...
Upvotes: 1
Views: 205
Reputation: 793
The priority and important part for the situation you specify is the delay.
If communication is large data streams instead of multiple, TCP should generally be preferred. By agreeing with the previous comment, it would be quite appropriate to use MQTT if the code complexity is aimed to be minimized.
Upvotes: 1
Reputation: 207873
It depends on several factors...
If your needs are for simplicity of code and design, probably MQTT.
If your communication is large streams of data and point-to-point rather than one-to-many, probably TCP.
Then there's latency to think about... acknowledgement of messages... whether the system should still be able to run with just 3 RasPis... whether it should be expandable to more than 5 RasPis.
Upvotes: 2