MQTT message types

Three types of message are mostly used:

  • CONNECT: Used for clients to send connection requests to the broker
  • PUBLISH: Used by the client/sender to publish messages to the broker
  • SUBSCRIBE: Used by the client/receiver to receive messages from the broker

Get Internet of Things with Raspberry Pi 3 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.