© Adeel Javed 2016

Adeel Javed, Building Arduino Projects for the Internet of Things, 10.1007/978-1-4842-1940-9_3

3. Communication Protocols

Adeel Javed

(1)Lake Zurich, Illinois, USA

In Chapter 2, you connected Arduino to the Internet using Ethernet and WiFi respectively. This chapter looks at two protocols used for sending and receiving data. A protocol is an agreed-upon structured format that is used for network communication. It defines what should be sent and received and what actions should be taken.

Learning Objectives

At the end of this chapter, you will be able to:

  • Understand the basics of the HTTP protocol

  • Send an HTTP request to the server

  • Understand the basics of the MQTT protocol

  • Publish and subscribe to an MQTT broker

HTTP

The web uses Hyper ...

Get Building Arduino Projects for the Internet of Things: Experiments with Real-World Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.