{"id":21615,"library":"node-red-iot-mqtt-api","title":"node-red-iot-mqtt-api","description":"A Node-RED custom node that integrates IoT MQTT APIs, enabling easy connection and data handling with MQTT brokers. Version 1.0.1 is the latest stable release, with a low release cadence. It simplifies IoT data flow in Node-RED by providing a dedicated node for MQTT-based IoT APIs, differentiating from generic MQTT nodes by offering pre-configured API integration for common IoT platforms.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","node-red"],"install":[{"cmd":"npm install node-red-iot-mqtt-api","lang":"bash","label":"npm"},{"cmd":"yarn add node-red-iot-mqtt-api","lang":"bash","label":"yarn"},{"cmd":"pnpm add node-red-iot-mqtt-api","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a Node-RED custom node; import is not standard JS import, but rather installation and use within Node-RED.","symbol":"node-red-iot-mqtt-api","correct":"Install via Node-RED palette manager or npm: npm install node-red-iot-mqtt-api"}],"quickstart":{"code":"// This package is a Node-RED node, not a library with code imports.\n// To use: In your Node-RED instance, install via Manage Palette or npm.\n// Then drag 'iot-mqtt-api' node from palette, configure MQTT broker and topic.\n// Example flow JSON (deploy to Node-RED):\n[{\"id\":\"1\",\"type\":\"iot-mqtt-api\",\"z\":\"\",\"name\":\"\",\"broker\":\"\",\"topic\":\"\",\"x\":400,\"y\":200,\"wires\":[[\"2\"]]},{\"id\":\"2\",\"type\":\"debug\",\"z\":\"\",\"name\":\"\",\"active\":true,\"console\":\"false\",\"complete\":\"true\",\"x\":600,\"y\":200,\"wires\":[]}]","lang":"javascript","description":"Shows how to use the Node-RED node by installing it and creating a simple flow with an MQTT API node connected to a debug node."},"warnings":[{"fix":"Ensure Node-RED is updated to version 2.0.0 or higher.","message":"Node-RED version compatibility: Requires Node-RED >=2.0.0.","severity":"breaking","affected_versions":"1.0.1"},{"fix":"Set the broker property to the MQTT broker URL (e.g., mqtt://localhost:1883).","message":"MQTT broker must be configured; node will not work without a valid broker address.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Consider alternative nodes or wait for update.","message":"Node may use deprecated Node-RED APIs; check Node-RED logs for warnings.","severity":"deprecated","affected_versions":"1.0.1"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Check MQTT broker configuration and ensure the broker is running.","cause":"MQTT broker not connected properly.","error":"TypeError: Cannot read property 'on' of undefined"},{"fix":"Provide a valid MQTT topic string (e.g., 'sensor/temperature').","cause":"Topic field is empty or incorrectly formatted.","error":"Error: Invalid topic specified"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}