Raspberry Pi peer-to-peer communications

Lead Image © sergwsq, 123RF.com

Pi Play

MQTT messaging controls multiple Pi music players from a smartphone.

For Pi-to-Pi communication, you can choose among a number of different protocol options, and some excellent cross-platform messaging protocols meet simple data-passing requirements, including Advanced Message Queue Protocol (AMQP) [1], Constrained Application Protocol (CoAP) [2], Message Queuing Telemetry Transport (MQTT) [3], and Simple/Streaming Text-Oriented Messaging Protocol (STOMP) [4]. Moreover, some popular middleware solutions like RabbitMQ [5] layer on top of the messaging protocols and offer a generic interface with many added features.

For simple Pi data-passing projects, MQTT is something you should seriously consider. MQTT is a lightweight, well-documented solution that is easy to install. Many Internet of Things (IoT) options are available, and Arduino has a number of libraries that support MQTT.

MQTT comprises the following elements:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 6

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content