Search code examples
azureiotnode-redazure-iot-central

Azure IOT central command/NodeRed


I'm currently exploring Azure IoT Central and have set up a device within it. Alongside this, I have an MQTT broker running via Node-RED on a Multitech gateway. My objective is to send commands from IoT Central to the MQTT broker, which should trigger my devices to respond with a 'true' or 'false' state.

My question is whether there is a method to transmit commands directly from IoT Central to the MQTT broker. I am relatively new to Azure and am unsure if I require an additional Azure service to facilitate this communication or if IoT Central provides a way to connect directly to the MQTT broker.

Any advice on how to configure this, especially if there are direct options without intermediary services, would be highly appreciated. Thank you in advance for your support.enter image description here


Solution

  • In the case, where your MQTT Broker (as a device) is connected to the Azure IoT Central App, just subscribe on the topic

    $iothub/methods/POST/# 
    

    see more details in the following document