Loading
Loading
IoT Lab content is currently available in Arabic only. We're working on an English version.
عرض بالعربية →The preferred IoT protocol. Send and receive data as very short text messages.
No components needed — this is a pure programming exercise.
// الكود طويل، يتطلب تضمين مكتبة PubSubClient
// يجب تحديد سيرفر البروكر مثل broker.mqtt-dashboard.com
// استخدم دالة client.publish("darhous/temp", "25.5"); للنشر
// ودالة client.subscribe("darhous/led"); للاستقبال.Using a very generic Topic (like 'test') on a free public broker, causing you to receive random messages from thousands of users worldwide who are testing their code.