0PricingLogin
Arduino & IoT Academy · Lesson

Connect to a Broker

Use PubSubClient to reach an MQTT server.

You Need a Broker First

Before any messages flow, your device must reach a broker. It is the server that accepts connections and routes every message.

Public or Private Brokers

You can use a free public broker like test.mosquitto.org for learning, or run your own private one for real projects.

All lessons in this course

  1. Why MQTT Fits IoT
  2. Connect to a Broker
  3. Publish Sensor Topics
  4. Subscribe & Act on Commands
← Back to Arduino & IoT Academy