Questions tagged [azure-iot-hub]

Azure IoT Hub is a fully managed Microsoft service that enables reliable and secure bi-directional communications between millions of IoT devices and a solution backend.

2008 questions
3
votes
1 answer

Retrieve properties of Service Bus message in Node.js Azure Function

I use Azure Service Bus to communicate IoT Hub with Node.js Functions. On Function side, I need to have access to message body as well as custom properties. By retrieving messages elsewhere, I have noticed that my message in Service Bus consists…
3
votes
2 answers

ARM Template for Iot Hub with IoT Edge device

I need to deploy an Azure IoT Hub with an IoT Edge device by using ARM Templates. Unfortunately, I cannot find any property for the Edge device object in the official documentation. Should I assume that this feature isn't supported yet? UPDATE: I…
user2297037
  • 1,167
  • 2
  • 14
  • 34
3
votes
2 answers

GetTwinAsync returns a device with null properties

I'm trying to read the twin of my device from the registry manager. This is my code: DeviceClient client = DeviceClient.CreateFromConnectionString(DeviceConnectionString, TransportType.Mqtt); Twin deviceTwin = await…
3
votes
3 answers

Lua SSL certificate and Azure Iot hub

I am trying to connect my NodeMCU ESP-12N to Azure IoT hub. I have created client with code like this: esp8266 = mqtt.Client(DEVICE, 240, USER, PASSWD) and receiving error on calling esp8266:connect PANIC: unprotected error in call to Lua API…
Alexej Sommer
  • 2,677
  • 1
  • 14
  • 25
3
votes
1 answer

Best way to monitor "connectionState" to identify connected devices in Azure IOTHub periodically

Our Use Case requires to implement the functionality to know if a device is Connected/Disconnected with accuracy<1 minute from WebApp. By implementing heartbeat pattern as advised…
Vignesh
  • 814
  • 7
  • 29
3
votes
1 answer

How to specify --device option for Docker run command?

I'm testing out the new Azure IoT Edge V2. I need to run the Docker image deployed to the edge device with the --device option like this (to access a serial port): $ docker run --device=/dev/serial/by-id/usb-ELT_SENSOR_EK100_V1.0_SN000001-if00-port0…
OlavT
  • 2,496
  • 4
  • 31
  • 56
3
votes
0 answers

Azure IoT Hub receiving messages late

In our IoT Solution that utilizes Azure IoT Hub on server side and Azure IoT Client SDK on Device side, we are seeing intermittent delay in time between device sent a status message over MQTT and message was received by IoT Hub. In some cases, we…
SBirthare
  • 5,117
  • 4
  • 34
  • 59
3
votes
3 answers

Azure IoT Hub - How to use Table Storage in IoT Hub?

First of all, sorry for my english skill. I'm a high school student from South Korea who's doing project with Azure IoT Hub. I am working on a project where a raspberry pi device is sending values to an Azure IoT Hub. I would like to save this data…
3
votes
2 answers

Azure IOT ServiceClient / RegistryClient: What is the recommended frequency of CloseAsync?

Microsoft.Azure.Devices.ServiceClient and Microsoft.Azure.Devices.RegistryManager both have ConnectFromConnectionString and CloseAsync methods. Should we use them like we use other .NET connection-close patterns, such as ADO.NET connections, Redis…
Howard Hoffman
  • 897
  • 1
  • 9
  • 22
3
votes
2 answers

RabbitMQ to Azure IoT-Hub?

Currently we want to access our Azure IoT-Hub using RabbitMQ. We know that there are other options and already tested a few, but this project is to test if it is possible and suitable for us. using RabbitMQ.Client; using…
3
votes
1 answer

Azure function stops getting called from IoT Hub

I have an IoTHub and a Function app containing a function (EventHubTrigger C#). I can see that the IoTHub receives approx. 6 messages from my device per hour - and the function gets called and stores data in a database. The function calls execution…
TechnoCowboy
  • 344
  • 2
  • 15
3
votes
3 answers

Defining Azure Stream Analytics iot-hub input source through Powershell

I'm trying to write a powershell script that creates a new streamAnalytics job in my azure portal account, with input source as iot-hub and output source as blob storage account. To do so, I'm using AzureRM command new-streamAnalyticsJob, and json…
3
votes
0 answers

How to send a post request to Azure IoT Hub using postman

I am trying, in order to simulate a device, to send a message to an existing IoT-Hub following this procedure: https://www.codeproject.com/Articles/1113447/Azure-IOT-Hub-REST-API I am able to successfully create my shared access signature using the…
Moncefmd
  • 343
  • 1
  • 4
  • 9
3
votes
1 answer

Can I send a message to a group of Azure IoT Hub Devices connected via MQTT WebSocket?

Goal: Send messages to a group of Azure IoT Hub Devices that are connected via MQTT WebSocket. Initial Idea: Have a group of IoT Hub Devices (group X) subscribe to messages with topic X. Problem: On the Communicate with your IoT hub using the MQTT…
mrh042
  • 47
  • 6
3
votes
4 answers

Connect to IoT Hub without using the Azure Client SDK

I want to connect to the Azure Iot Hub not using the Client SDK. On https://azure.microsoft.com/nb-no/blog/upload-files-from-devices-with-azure-iot-hub/ there are documentation on how to do this by 1) get the SAS URI for storage 2) to notify the…
w00zert
  • 49
  • 4