Get parameter from Azure IoT hub to ParticleIO Electron

Hello there,

we have a ParticleIO Electron successfully connected to Azure IoT hub. We got this working because the ParticleIO console provides a Azure IoT hub integration. However, this is one way traffic. With the Particle.publish() function you can send variable data to the ParticleIO cloud which forwards the data to Azure IoT hub. This is nice, but when I send a message to the device from Azure IoT hub, for instance to turn an LED on or off, this doesn’t work. I found a tutorial in which is explained how to send a message to your device using a REST POST request. I got this working as well. But how can I make Azure IoT Hub send a message to the device, instead of a custom built POST?

Kind Regards,

Frankie van Meel Itility B.V.

1 Like

Hello, I am looking for an answer to the same question.

I can call a function on the device with a REST call but as far as I can see the device has to be online for this to work. Ideally I would like to be send via Azure IOT hub a request to a function on the device that will be delivered when the device connects to the Azure IOT hub. There is “Message To Device” functionality of Azure IOT Hub but I can’t figure out how to use this to call a function on the device.


1 Like