Raspberry Pi - MQTT for IoT
Identify the error in this MQTT Python code snippet:
import paho.mqtt.client as mqtt
client = mqtt.Client()
client.publish('home/light', 'ON')
client.connect('broker.hivemq.com', 1883)